[U-Boot] [PATCH] CFI Driver: Reset watchdog timer after each flash operation

Wolfgang Denk wd at denx.de
Fri Oct 2 14:30:51 CEST 2009


Dear Ingo van Lil,

In message <20091002103417.GA9767 at zaphod.peppercon.de> you wrote:
> The CFI driver does not reset the device's watchdog, so long-running
> flash operations will cause the watchdog timer to expire. A comment in
> flash_status_check() suggests that udelay() is expected to reset the
> watchdog, but I can't find any architecture where it does.

Please have a closer look, then. On PowerPC, udelay()
["lib_ppc/time.c"] calls wait_ticks(), which in turn
["lib_ppc/ticks.S"] calls WATCHDOG_RESET

If this is missing in other architectures, it should be fixed at the
root cause, i. e. in udelay() or in the respective support routines.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
As long as we're going to reinvent the wheel again, we might as  well
try making it round this time.                        - Mike Dennison


More information about the U-Boot mailing list