[MTD] fix mtdconcat for subpage-write NAND

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Oct 14 08:59:01 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a2e1b833d9e0231d67e722b7e2f4d79daf919baf
Commit:     a2e1b833d9e0231d67e722b7e2f4d79daf919baf
Parent:     3cd3a86b6fdcb80ad097850a0990bcf6251422fe
Author:     Chris Paulson-Ellis <chris at edesix.com>
AuthorDate: Fri Oct 12 10:54:06 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun Oct 14 13:38:02 2007 +0100

    [MTD] fix mtdconcat for subpage-write NAND
    
    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>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/mtdconcat.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c
index 96be7ef..d563dcd 100644
--- a/drivers/mtd/mtdconcat.c
+++ b/drivers/mtd/mtdconcat.c
@@ -726,6 +726,7 @@ struct mtd_info *mtd_concat_create(struct mtd_info *subdev[],	/* subdevices to c
 	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-cvs mailing list