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
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to