android_kernel_xiaomi_sm8350/drivers/mtd/chips
Guillaume LECERF 564b84978d mtd: cfi_cmdset_0002: do not fail on no extended query table as they are both optional
After looking at AMD's CFI specification [1], both of the extended query
tables are optional. Thus, it looks like relying that at least one of
those tables exist is a bug in cfi_cmdset_0002.

This patch inverts the logic and checks for unlock function pointers before
exiting on error. This approach leaves place to add a call to a fixup
function to try to handle chips compatible with the early AMD specification
from 1995 [2].

[1] http://www.amd.com/us-en/assets/content_type/DownloadableAssets/cfi_r20.pdf
[2] http://noel.feld.cvut.cz/hw/amd/20158a.pdf

Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-05-14 01:33:27 +01:00
..
cfi_cmdset_0001.c mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers. 2010-05-10 14:22:30 +01:00
cfi_cmdset_0002.c mtd: cfi_cmdset_0002: do not fail on no extended query table as they are both optional 2010-05-14 01:33:27 +01:00
cfi_cmdset_0020.c mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers. 2010-05-10 14:22:30 +01:00
cfi_probe.c mtd: cfi_probe: add support for SST 0x0701 vendorname 2010-05-14 01:08:11 +01:00
cfi_util.c tree wide: remove execute flag from .c files 2010-02-04 11:55:44 +01:00
chipreg.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
fwh_lock.h mtd: fix a huge latency problem in the MTD CFI and LPDDR flash drivers. 2010-05-10 14:22:30 +01:00
gen_probe.c mtd: cfi_probe: use P_ID_* definitions instead of hardcoded values 2010-05-14 01:08:19 +01:00
jedec_probe.c tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
Kconfig Kconfig: Remove useless and sometimes wrong comments 2009-11-09 09:40:56 +01:00
Makefile
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