[U-Boot] [PATCH] serial: atmel_usart: insert watchdog petting during putc() and tstc()
Mike Frysinger
vapier at gentoo.org
Sun Jun 13 04:27:21 CEST 2010
On Thu, Jun 10, 2010 at 10:57 AM, Nicolas Ferre wrote:
> --- a/drivers/serial/atmel_usart.c
> +++ b/drivers/serial/atmel_usart.c
> @@ -80,7 +80,8 @@ void serial_putc(char c)
> if (c == '\n')
> serial_putc('\r');
>
> - while (!(usart3_readl(CSR) & USART3_BIT(TXRDY))) ;
> + while (!(usart3_readl(CSR) & USART3_BIT(TXRDY)))
> + WATCHDOG_RESET();
> usart3_writel(THR, c);
> }
i think you'd want to call it before the while() loop, but not in it ...
-mike
More information about the U-Boot
mailing list