serial: bfin_sport_uart: only enable SPORT TX if data is to be sent
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 9 Mar 2010 17:25:37 +0000 (12:25 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:34:28 +0000 (09:34 -0700)
commit9356c46170e0551f72467c9b0fb9a856a36aa2de
tree189b4dcf17222ab526c03e4631e7c92ae7d8402e
parent60bd940f142741092b95a2e572f81741dc867545
serial: bfin_sport_uart: only enable SPORT TX if data is to be sent

Rather than always turn on the SPORT TX interrupt, only do it when we've
actually queued up data for transmission.  This avoids useless interrupt
processing.

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