remarkable-linux/drivers/mtd/devices
Marek Vasut 8bb8b85f67 mtd: m25p80: Fix the Spansion chip detection
Due to the implementation of the following loop at the end
of jedec_probe():

776         for (tmp = 0; tmp < ARRAY_SIZE(m25p_ids) - 1; tmp++) {
777                 info = (void *)m25p_ids[tmp].driver_data;
778                 if (info->jedec_id == jedec) {
779                         if (info->ext_id != 0 && info->ext_id != ext_jedec)
780                                 continue;
781                         return &m25p_ids[tmp];
782                 }
783         }

In particular line 779 in the above numbering, the chips with ext_id != 0 must
be ordered first in the list of chips (m25p_ids[]).

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-09-29 14:50:22 +01:00
..
block2mtd.c mtd: block2mtd: fix recursive call of mtd_writev 2012-06-01 20:23:19 +01:00
doc2000.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
doc2001.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
doc2001plus.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
docecc.c mtd: spelling, capitalization, uniformity 2011-09-11 15:02:13 +03:00
docg3.c - More robust parsing especially of xattr data in JFFS2 2012-06-01 16:55:42 -07:00
docg3.h mtd: docg3 add protection against concurrency 2012-03-27 01:03:27 +01:00
docprobe.c mtd: docprobe: use kzalloc instead 2012-01-09 18:25:51 +00:00
Kconfig mtd: fix bogus inequation 2012-07-06 18:17:55 +01:00
lart.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
m25p80.c mtd: m25p80: Fix the Spansion chip detection 2012-09-29 14:50:22 +01:00
Makefile mtd: ST SPEAr: Add SMI driver for serial NOR flash 2012-03-27 00:14:16 +01:00
ms02-nv.c mtd: do not duplicate length and offset checks in drivers 2012-03-27 00:28:18 +01:00
ms02-nv.h
mtd_dataflash.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
mtdram.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
phram.c mtd: phram: fix section mismatch for phram_setup 2012-03-27 01:02:29 +01:00
pmc551.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
slram.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
spear_smi.c mtd: spear_smi: handle return value of timeouts properly 2012-07-06 18:27:48 +01:00
sst25l.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00