]> bbs.cooldavid.org Git - net-next-2.6.git/commit
serial: bfin_sport_uart: shorten the SPORT TX waiting loop
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 9 Mar 2010 17:25:29 +0000 (12:25 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:34:27 +0000 (09:34 -0700)
commit3f3a978b9f4a513610b32f16670914006a61067f
treebd7f6b46a8f7c153ba370e0382a9dc7dc7ab1cea
parenta5a420d207df40226afbf828c12bd9b4c6e058ef
serial: bfin_sport_uart: shorten the SPORT TX waiting loop

The waiting loop to stop SPORT TX from TX interrupt is too long.  This may
block the SPORT RX interrupts and cause the RX FIFO to overflow. So, do
stop sport TX only after the last char in TX FIFO is moved into the shift
register.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/bfin_sport_uart.c