mtd_dataflash: Fix probing of AT45DB321C chips.
PATCH 1/1 mtd_dataflash: Fix probing of AT45DB321C chips.
Commit 771999b65f79264acde4b855e5d35696eca5e80c broke support for probing AT45DB321C flash chips. These chips do not support the "page size" status bit, so if we match the JEDEC id return early.
--- drivers/mtd/devices/mtd_dataflash.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
(quoted diff) +0 -0
b/drivers/mtd/devices/mtd_dataflash.c
index d44f741..cd4781f 100644
drivers/mtd/devices/mtd_dataflash.c +0 -0
@@ -822,6 +822,8 @@ static struct flash_info *__devinit
jedec_probe(struct spi_device *spi)
return info;
}
}
+ else
+ return info;
}
}
Signature · 1 line
1.5.5.2
From 1b34659677fdab0b03590d189afe1820d250f095 Mon Sep 17 00:00:00 2001
From: Will Newton <[email protected]>
Date: Wed, 4 Mar 2009 10:29:19 +0000
Subject: [PATCH] mtd_dataflash: Fix probing of AT45DB321C chips.
Commit 771999b65f79264acde4b855e5d35696eca5e80c broke support for probing AT45DB321C flash chips. These chips do not support the "page size" status bit, so if we match the JEDEC id return early.
--- drivers/mtd/devices/mtd_dataflash.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/mtd/devices/mtd_dataflash.c +2 -0
@@ -822,6 +822,8 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi)return info; } } +else +return info; } }
Signature · 1 line
1.5.5.2
Quoted 5 lines · Will Newton
Commit
771999b65f79264acde4b855e5d35696eca5e80cbroke support for probing AT45DB321C flash chips. These chips do not support the "page size" status bit, so if we match the JEDEC id return early.Signed-off-by Will Newton <[email protected]>
.... these are the *only* such chips with that issue, first version of the more capable generations of chips.
Out of curiousity, was this observed with a C-rev chip, or inferred by noticing it was the only chip that could ever need such an "else" branch?
Quoted 22 lines
--- drivers/mtd/devices/mtd_dataflash.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)drivers/mtd/devices/mtd_dataflash.c +2
-0@@ -822,6 +822,8 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi) return info; } } +else +return info; } }Signature · 2 lines
-- 1.5.5.2