From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 9 Feb 2012 10:49:52 +0100 Subject: [U-Boot] [PATCH] * Fix: watchdog timed out, if flash blank (0xFF) blocks In-Reply-To: <1327652993-16667-1-git-send-email-esw@bus-elektronik.de> References: <1327652993-16667-1-git-send-email-esw@bus-elektronik.de> Message-ID: <201202091049.53189.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 On Friday 27 January 2012 09:29:53 Jens Scharsig (BuS Elektronik) wrote: > The current implementation of cfi_flash uses udelay to reset watchdog. > If several blocks are blank (0xff filled) the watchdog timed out. > The reason is, udelay is never called, if flash device is ready to fast. > > e.g. > mw.w $(copy_addr) FFFF 10000;cp.b $(copy_addr) 10880000 20000 > > -> watchdog timed out > > mw.w $(copy_addr) 0000 10000;cp.b $(copy_addr) 10880000 20000 > > -> watchdog not timed out > > This patch adds an extra watchdog reset in front of flash ready check. > > Signed-off-by: Jens Scharsig (BuS Elektronik) Applied to u-boot-cfi-flash. Thanks. Best regards, 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