[SPAM] Re: P30 flash left in read status mode after a write

Alexey Korolev akorolev at infradead.org
Tue Feb 20 14:11:16 EST 2007


HI ALL.


I'm not sure if it could help but it remind me one bug I faced over a year ago. Could you please try this fixup. It fixes improper CFI parsing in CFI drivers.
--- trunk/drivers/mtd/chips/cfi_cmdset_0001.c (revision 8)
+++ trunk/drivers/mtd/chips/cfi_cmdset_0001.c (revision 10)
@@ -285,7 +285,7 @@
                             sizeof(struct cfi_intelext_otpinfo);

               /* Burst Read info */
-             extra_size += (extp->MinorVersion < '4') ? 6 : 5;
+             extra_size += (unsigned int)extp->extra[extra_size+1]+2;

               /* Number of hardware-partitions */
               extra_size += 1;
@@ -519,7 +519,7 @@
                      sizeof(struct cfi_intelext_otpinfo);

               /* Burst Read info */
-             offs += (extp->MinorVersion < '4') ? 6 : 5;
+             offs += (int)extp->extra[offs+1]+2;
-------------------------------------

Original fix message is here:http://lists.infradead.org/pipermail/linux-mtd/2005-October/014144.html

Thanks
Alexey





More information about the linux-mtd mailing list