summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorJayachandran C <jayachandranc@netlogicmicro.com>2012-07-16 15:33:37 +0530
committerRalf Baechle <ralf@linux-mips.org>2012-07-24 18:24:44 +0200
commit7e6507ad76a212b961d2392d22a9610be9e4e053 (patch)
tree072c293043a8d07ac92cfac238bb9d7ccd0133f9 /arch/mips
parent93a029325979c4baa4cb03286e628b802614b5cb (diff)
downloadop-kernel-dev-7e6507ad76a212b961d2392d22a9610be9e4e053.zip
op-kernel-dev-7e6507ad76a212b961d2392d22a9610be9e4e053.tar.gz
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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/netlogic/common/earlycons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/netlogic/common/earlycons.c b/arch/mips/netlogic/common/earlycons.c
index f193f7b..1902fa2 100644
--- a/arch/mips/netlogic/common/earlycons.c
+++ b/arch/mips/netlogic/common/earlycons.c
@@ -54,7 +54,7 @@ void prom_putchar(char c)
#elif defined(CONFIG_CPU_XLR)
uartbase = nlm_mmio_base(NETLOGIC_IO_UART_0_OFFSET);
#endif
- while (nlm_read_reg(uartbase, UART_LSR) == 0)
+ while ((nlm_read_reg(uartbase, UART_LSR) & UART_LSR_THRE) == 0)
;
nlm_write_reg(uartbase, UART_TX, c);
}
OpenPOWER on IntegriCloud