From: Ladislav Michl Date: Mon, 1 Feb 2010 22:34:25 +0000 (+0100) Subject: ns16550: kick watchdog while waiting for a character X-Git-Tag: v2010.03-rc1~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1b322a98319de568b3bc38029ef7e123643c1e8;p=platform%2Fkernel%2Fu-boot.git ns16550: kick watchdog while waiting for a character ns16550 busyloops waiting for incoming byte causing watchdog to reboot while waiting for a key press. A call to WATCHDOG_RESET in NS16550_getc loop fixes it. Signed-off-by: Ladislav Michl --- diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 2fcc8c3..b3bf10b 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -6,6 +6,7 @@ #include #include +#include #define UART_LCRVAL UART_LCR_8N1 /* 8 data, 1 stop, no parity */ #define UART_MCRVAL (UART_MCR_DTR | \ @@ -70,6 +71,7 @@ char NS16550_getc (NS16550_t com_port) extern void usbtty_poll(void); usbtty_poll(); #endif + WATCHDOG_RESET(); } return (com_port->rbr); }