[MTD] [NOR] Fix Intel CFI driver for collie flash
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Apr 22 20:59:01 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=fe224668dff97dd8899bd559d1608cc9285db67b
Commit: fe224668dff97dd8899bd559d1608cc9285db67b
Parent: 19e56ceae7cb1833ffd806038c19477b2c265f9f
Author: Thomas Kunze <thommycheck at gmx.de>
AuthorDate: Wed Apr 23 01:40:52 2008 +0200
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Apr 23 01:32:12 2008 +0100
[MTD] [NOR] Fix Intel CFI driver for collie flash
collie seems to contain LH28F640BF flash chips. According to
http://sharp-world.com/products/device/flash/pdf/*FUM00701*@E.pdf
(page 83) if they have 0x51 of Extended Query Table (number of hardware
partitions) set to zero, they have a single fixed partition.
This patch makes those chips work.
Signed-off-by: Thomas Kunze <thommycheck at gmx.de>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/chips/cfi_cmdset_0001.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index eb0e308..e812df6 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -619,6 +619,9 @@ static int cfi_intelext_partition_fixup(struct mtd_info *mtd,
sizeof(struct cfi_intelext_blockinfo);
}
+ if (!numparts)
+ numparts = 1;
+
/* Programming Region info */
if (extp->MinorVersion >= '4') {
struct cfi_intelext_programming_regioninfo *prinfo;
More information about the linux-mtd-cvs
mailing list