[U-Boot-Users] Re: [PATCH] Nios: WATCHDOG preparation

Wolfgang Denk wd at denx.de
Mon Feb 16 10:30:10 CET 2004


Dear Stephan,,

in message <0402161009090A.00467 at pcj86> you wrote:
> 
Dear Stephan,,

> attached patch includes the WATCHDOG_RESET() macro at some more points in 
> U-Boot so I can use it in my upcoming new Nios board support. Please, merge 
> it with current CVS tree -- thanks.

I would like to ask you to modify your patch.

> @@ -1174,7 +1175,11 @@ static void smc_write_phy_register (byte
>  #ifndef CONFIG_SMC91111_EXT_PHY
>  static void smc_wait_ms(unsigned int ms)
>  {
> +	/* B E   W A R N E D :
> +	 * DON'T EXCEED YOUR WATCHDOG TIMOUT WITH ARGUMENT 'ms' */
> +	WATCHDOG_RESET ();
>  	udelay(ms*1000);
> +	WATCHDOG_RESET ();

This should never be  necessary.  The  udelay()  function  itself  is
expected to trigger the waitchdog as necessary.

If this is not the case on NIOS, then please fix this first. It might
make some more of your modifications redundand, too.



Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Why waste negative entropy on comments, when you could use the  same
entropy to create bugs instead?"                        - Steve Elias




More information about the U-Boot mailing list