From: Wolfgang Denk Date: Fri, 02 Oct 2009 14:30:51 +0200 Subject: [U-Boot] [PATCH] CFI Driver: Reset watchdog timer after each flash operation In-Reply-To: <20091002103417.GA9767@zaphod.peppercon.de> References: <20091002103417.GA9767@zaphod.peppercon.de> Message-ID: <20091002123051.7AC06832E408@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ingo van Lil, In message <20091002103417.GA9767@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