]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: OneNAND: OMAP2: increase multiblock erase verify timeout
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Mon, 7 Feb 2011 08:47:01 +0000 (10:47 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 17 Feb 2011 23:44:46 +0000 (15:44 -0800)
commit131c25546e8b918c7b7a36440cd090dbfc478fd9
treed85613c1a8a882e94a41e6c2c9fe423de0356af5
parent53e3cb3a3cef4aecc8786899fdec74d623e5b8bb
mtd: OneNAND: OMAP2: increase multiblock erase verify timeout

The current multiblock erase verify read timeout 100us is the maximum
for none-error case. If errors happen during multibock erase then
the specification recommends to run multiblock erase verify command
with maximum timeout 10ms (see specs. for KFM4G16Q2A and KFN8G16Q2A).

For the most common non-error case we wait 100us in udelay polling
loop. In case of timeout the interrupt mode is used to wait for the
command end.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mtd/onenand/omap2.c