aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/8250.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index a07442ffefbd..0ede0ee64243 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2232,9 +2232,10 @@ static inline void wait_for_xmitr(struct uart_8250_port *up, int bits)
2232 /* Wait up to 1s for flow control if necessary */ 2232 /* Wait up to 1s for flow control if necessary */
2233 if (up->port.flags & UPF_CONS_FLOW) { 2233 if (up->port.flags & UPF_CONS_FLOW) {
2234 tmout = 1000000; 2234 tmout = 1000000;
2235 while (--tmout && 2235 while (!(serial_in(up, UART_MSR) & UART_MSR_CTS) && --tmout) {
2236 ((serial_in(up, UART_MSR) & UART_MSR_CTS) == 0))
2237 udelay(1); 2236 udelay(1);
2237 touch_nmi_watchdog();
2238 }
2238 } 2239 }
2239} 2240}
2240 2241