[PATCH] mtd: fix mtdconcat for subpage-write NAND

Chris Paulson-Ellis chris at edesix.com
Tue Oct 2 05:09:26 EDT 2007


This allows the mtdconcat driver to work with NAND flash devices that support sub-page writes.

Signed-off-by: Chris Paulson-Ellis <chris at edesix.com>

--- linux-2.6.22.2/drivers/mtd/mtdconcat.c.orig 2007-07-09 00:32:17.000000000 +0100
+++ linux-2.6.22.2/drivers/mtd/mtdconcat.c      2007-10-02 09:49:42.000000000 +0100
@@ -726,6 +726,7 @@ struct mtd_info *mtd_concat_create(struc
        concat->mtd.size = subdev[0]->size;
        concat->mtd.erasesize = subdev[0]->erasesize;
        concat->mtd.writesize = subdev[0]->writesize;
+       concat->mtd.subpage_sft = subdev[0]->subpage_sft;
        concat->mtd.oobsize = subdev[0]->oobsize;
        concat->mtd.oobavail = subdev[0]->oobavail;
        if (subdev[0]->writev)




More information about the linux-mtd mailing list