kernel-ark/include/linux/mtd
Anders Grafström e93cafe45f [MTD] [NOR] cfi_cmdset_0001: Timeouts for erase, write and unlock operations
Timeouts are currently given by the typical operation time times 8.
It works in the general well-behaved case but not when an erase block is
failing. For erase operations, it seems that a failing erase block will
keep the device state machine in erasing state until the vendor
specified maximum timeout period has passed. By this time the driver
would have long since timed out, left erasing state and attempted
further operations which all fail. This patch implements timeouts using
values from the CFI Query structure when available.
The patch also sets a longer timeout for locking operations. The current
value used for locking/unlocking given by 1000000/HZ microseconds is too
short for devices like J3 and J5 Strataflash which have a typical clear
lock-bits time of 0.5 seconds.

Signed-off-by: Anders Grafström <grfstrm@users.sourceforge.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2008-08-06 09:44:54 +01:00
..
bbm.h [MTD] OneNAND: Error message printing and bad block scan erros 2007-02-07 12:15:01 +09:00
blktrans.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
cfi_endian.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
cfi.h [MTD] [NOR] Add qry_mode_on()/qry_omde_off() to deal with odd chips 2008-08-06 09:43:58 +01:00
compatmac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
concat.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
doc2000.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
flashchip.h [MTD] [NOR] cfi_cmdset_0001: Timeouts for erase, write and unlock operations 2008-08-06 09:44:54 +01:00
ftl.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
gen_probe.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
inftl.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
map.h Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6 2008-07-25 10:40:14 -04:00
mtd.h [MTD] MTD_DEBUG always does compile-time typechecks 2008-07-30 14:21:05 +01:00
mtdram.h [MTD] Provide mtdram.h with mtdram_init_device() prototype 2007-11-06 08:40:24 +00:00
nand_ecc.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
nand.h [MTD] [NAND] fix subpage read for small page NAND 2008-07-30 11:59:24 +01:00
ndfc.h [MTD] NAND Fix platform structure and NDFC driver 2006-05-29 15:06:49 +02:00
nftl.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
onenand_regs.h [MTD] [OneNAND] Add defines for HF and sync write 2008-08-01 22:06:15 +01:00
onenand.h [MTD] [OneNAND] proper onenand_bbt_read_oob() prototype 2008-04-22 15:59:13 +01:00
partitions.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
physmap.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
plat-ram.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
pmc551.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
super.h [MTD] generalise the handling of MTD-specific superblocks 2007-05-11 12:14:15 +01:00
ubi.h UBI: amend commentaries 2008-07-24 13:32:56 +03:00
xip.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00