]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
* Fix: watchdog timed out, if flash blank (0xFF) blocks
authorJens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
Fri, 27 Jan 2012 08:29:53 +0000 (09:29 +0100)
committerStefan Roese <sr@denx.de>
Thu, 9 Feb 2012 08:45:40 +0000 (09:45 +0100)
commita9f5faba6e2c5819fc1ebeef02fad1726721f849
tree513dfc3dcf782b42113e801d945c4c98df74af14
parent137703b811502dfea364650fb3e17f20b4c21333
* Fix: watchdog timed out, if flash blank (0xFF) blocks

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) <esw@bus-elektronik.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c