From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 2 Oct 2009 13:06:38 +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: <200910021306.38589.sr@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 Hi Ingo, On Friday 02 October 2009 12:34:17 Ingo van Lil 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. PPC does it this way. udelay() in lib_ppc/time.c calls wait_ticks(). And here you will find WATCHDOG_RESET. Which platform are you using? I support this needs to be fixed in your platform. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de