[PATCH]fs/jffs2/wbuf.c: add compatibility support for OOB data block

Artem B. Bityuckiy dedekind at yandex.ru
Tue Aug 16 09:19:40 EDT 2005


Ferenc Havasi wrote:
> It writes
> 
> [nandsim] errorr: write_byte: chip is disabled, ignore write
> 
> with its default configuration. It worked well earlier. Maybe there were 
> changes in mtd...
> 
Hmm, I also see this message. But nandsim still works just fine..

Thomas, nandsim issues a warning that one sends command to nand while it 
is disabled. Not sure, but isn't this patch should be applied to 
nand_base.c:

--- nand_base.c 2005-08-05 14:44:30.000000000 +0400
+++ nand_base_fixed.c   2005-08-16 17:13:41.620785252 +0400
@@ -2652,6 +2652,9 @@ int nand_scan (struct mtd_info *mtd, int

         mtd->owner = THIS_MODULE;

+       /* Select the device */
+       this->select_chip(mtd, 0);
+
         /* Reset the chip */
         this->cmdfunc (mtd, NAND_CMD_RESET, -1, -1);

At line 2621 we did:

         /* De-select the device */
         this->select_chip(mtd, -1);

so it seems logical to enable it before sending the reset command, isn't 
it ?

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.




More information about the linux-mtd mailing list