Commit 7e6507ad76a212b961d2392d22a9610be9e4e053
Committed by
Ralf Baechle
1 parent
93a0293259
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
MIPS: Netlogic: early console fix
In prom_putchar(), wait for just the TX empty bit to clear in the UART LSR. Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com> Cc: linux-mips@linux-mips.org Cc: Florian Fainelli <florian@openwrt.org> Patchwork: https://patchwork.linux-mips.org/patch/4112/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
arch/mips/netlogic/common/earlycons.c
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | #elif defined(CONFIG_CPU_XLR) |
55 | 55 | uartbase = nlm_mmio_base(NETLOGIC_IO_UART_0_OFFSET); |
56 | 56 | #endif |
57 | - while (nlm_read_reg(uartbase, UART_LSR) == 0) | |
57 | + while ((nlm_read_reg(uartbase, UART_LSR) & UART_LSR_THRE) == 0) | |
58 | 58 | ; |
59 | 59 | nlm_write_reg(uartbase, UART_TX, c); |
60 | 60 | } |