From: Sonic Zhang Date: Sun, 23 Dec 2007 15:18:08 +0000 (+0800) Subject: [Blackfin] serial driver: fix bug - should not wait for the TFI bit, just clear it... X-Git-Tag: v2.6.25-rc4~144^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4c195ad88b7df54b2e7340dec3446aee6ca84cd1;p=linux-2.6-omap-h63xx.git [Blackfin] serial driver: fix bug - should not wait for the TFI bit, just clear it when tx stop. Signed-off-by: Sonic Zhang Signed-off-by: Bryan Wu --- diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 007414639e3..ca9ceaa113a 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c @@ -95,9 +95,6 @@ static void bfin_serial_stop_tx(struct uart_port *port) disable_dma(uart->tx_dma_channel); #else #ifdef CONFIG_BF54x - /* Waiting for Transmission Finished */ - while (!(UART_GET_LSR(uart) & TFI)) - continue; /* Clear TFI bit */ UART_PUT_LSR(uart, TFI); UART_CLEAR_IER(uart, ETBEI);