[PATCH] CFI support P30 with CFI1.5 enabled

Korolev, Alexey alexey.korolev at intel.com
Fri Sep 7 10:12:17 EDT 2007


Hi

I faced some issues using P30 with CFI 1.5 in latest Linux kernel. 
According to the specification the changes between CFI1.4 and CFI 1.5
are minor - and the difference won't affect the CFI code at all except
check of CFI version. So fix is trivial.

Could you please submit this fix?

Thanks,
Alexey

Signed-off-by: Alexey Korolev <alexey.korolev at intel.com>

P30 support with CFI1.5 enabled

diff -aur P30_1.4/drivers/mtd/chips/cfi_cmdset_0001.c
P30_1.5/drivers/mtd/chips/cfi_cmdset_0001.c
--- P30_1.4/drivers/mtd/chips/cfi_cmdset_0001.c	2007-09-07
18:01:19.000000000 +0400
+++ P30_1.5/drivers/mtd/chips/cfi_cmdset_0001.c	2007-09-07
18:00:00.000000000 +0400
@@ -276,7 +276,7 @@
 		return NULL;
 
 	if (extp->MajorVersion != '1' ||
-	    (extp->MinorVersion < '0' || extp->MinorVersion > '4')) {
+	    (extp->MinorVersion < '0' || extp->MinorVersion > '5')) {
 		printk(KERN_ERR "  Unknown Intel/Sharp Extended Query "
 		       "version %c.%c.\n",  extp->MajorVersion,
 		       extp->MinorVersion);




More information about the linux-mtd mailing list