2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00
linux-next/drivers/mtd/chips
Joakim Tjernlund 2695eab964 mtd: CFI cmdset_0002: enable erase-suspend-program
Erase-suspend for writing is required to avoid blocking applications
that wish to write some data (to a NOR block other than the one being
erased). Particularly, it solves some huge delays that an application
(which writes to a UBIFS) will experience if UBI attaches to empty NOR
flash. In this case the UBI background thread will erase a lot of blocks
and the application can be blocked for minutes because of the "MTD/CFI
chip lock".

This feature has been disabled for years. Maybe this was because the old
code turned it on for erase-suspend read-only chips also
(cfip->EraseSuspend & 0x1). This is wrong and corrected now.

This patch was tweaked by Norbert van Bolhuis.

Signed-off-by: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-11-30 09:58:53 +00:00
..
cfi_cmdset_0001.c mtd: move manufacturer to the common cfi.h header file 2009-11-30 09:51:26 +00:00
cfi_cmdset_0002.c mtd: CFI cmdset_0002: enable erase-suspend-program 2009-11-30 09:58:53 +00:00
cfi_cmdset_0020.c Nicolas Pitre has a new email address 2009-09-15 09:37:12 -07:00
cfi_probe.c [MTD] [NOR] Rename and export new cfi_qry_*() functions 2008-08-07 11:55:07 +01:00
cfi_util.c mtd: cfi_cmdset_0002: add 0xFF intolerance for M29W128G 2009-09-19 14:18:43 -07:00
chipreg.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
fwh_lock.h [MTD] update internal API to support 64-bit device size 2008-12-10 13:37:21 +00:00
gen_probe.c [MTD] Use DIV_ROUND_UP 2008-08-02 18:45:18 +01:00
jedec_probe.c mtd: jedec_probe: add PSD4256G6V id 2009-09-23 00:07:00 -07:00
Kconfig [MTD] [NOR] Select MTD_CFI_UTIL when MTD_CFI probe routine is enabled 2008-09-01 12:23:22 +01:00
Makefile [MTD] [CHIPS] Remove MTD_OBSOLETE_CHIPS (jedec, amd_flash, sharp) 2007-05-09 13:34:37 +01:00
map_absent.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
map_ram.c NOMMU: Present backing device capabilities for MTD chardevs 2009-03-24 09:00:19 +00:00
map_rom.c NOMMU: Present backing device capabilities for MTD chardevs 2009-03-24 09:00:19 +00:00