diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2008-04-22 21:43:20 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-04-22 21:43:20 -0400 |
commit | 1a3a4c7130d6f39b56efc259d653f6dec4990ea3 (patch) | |
tree | 56cdfaaec52422b8d6804d4fd764b93b5380d5dc /drivers/serial/bfin_5xx.c | |
parent | 0c44a86d9e19021b38a7d7835f25210ef74b2612 (diff) |
Blackfin Serial Driver: Fix bug - kernel hangs when accessing uart 0 on bf537 when booting u-boot and linux on uart 1
Wait only when this UART is enabled.
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3995
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index b773764ddab9..1dc9b583fa62 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -806,10 +806,6 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios, | |||
806 | 806 | ||
807 | UART_SET_ANOMALY_THRESHOLD(uart, USEC_PER_SEC / baud * 15); | 807 | UART_SET_ANOMALY_THRESHOLD(uart, USEC_PER_SEC / baud * 15); |
808 | 808 | ||
809 | do { | ||
810 | lsr = UART_GET_LSR(uart); | ||
811 | } while (!(lsr & TEMT)); | ||
812 | |||
813 | /* Disable UART */ | 809 | /* Disable UART */ |
814 | ier = UART_GET_IER(uart); | 810 | ier = UART_GET_IER(uart); |
815 | #ifdef CONFIG_BF54x | 811 | #ifdef CONFIG_BF54x |