diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/chips/jedec_probe.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c index 30325a25ab95..c2ef821b7af9 100644 --- a/drivers/mtd/chips/jedec_probe.c +++ b/drivers/mtd/chips/jedec_probe.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | Common Flash Interface probe code. | 2 | Common Flash Interface probe code. |
3 | (C) 2000 Red Hat. GPL'd. | 3 | (C) 2000 Red Hat. GPL'd. |
4 | $Id: jedec_probe.c,v 1.61 2004/11/19 20:52:16 thayne Exp $ | 4 | $Id: jedec_probe.c,v 1.62 2005/02/14 16:27:34 bjd Exp $ |
5 | See JEDEC (http://www.jedec.org/) standard JESD21C (section 3.5) | 5 | See JEDEC (http://www.jedec.org/) standard JESD21C (section 3.5) |
6 | for the standard this probe goes back to. | 6 | for the standard this probe goes back to. |
7 | 7 | ||
@@ -1856,6 +1856,16 @@ static inline int jedec_match( __u32 base, | |||
1856 | case CFI_DEVICETYPE_X8: | 1856 | case CFI_DEVICETYPE_X8: |
1857 | mfr = (__u8)finfo->mfr_id; | 1857 | mfr = (__u8)finfo->mfr_id; |
1858 | id = (__u8)finfo->dev_id; | 1858 | id = (__u8)finfo->dev_id; |
1859 | |||
1860 | /* bjd: it seems that if we do this, we can end up | ||
1861 | * detecting 16bit flashes as an 8bit device, even though | ||
1862 | * there aren't. | ||
1863 | */ | ||
1864 | if (finfo->dev_id > 0xff) { | ||
1865 | DEBUG( MTD_DEBUG_LEVEL3, "%s(): ID is not 8bit\n", | ||
1866 | __func__); | ||
1867 | goto match_done; | ||
1868 | } | ||
1859 | break; | 1869 | break; |
1860 | case CFI_DEVICETYPE_X16: | 1870 | case CFI_DEVICETYPE_X16: |
1861 | mfr = (__u16)finfo->mfr_id; | 1871 | mfr = (__u16)finfo->mfr_id; |