Skip to contentSkip to conversation

mtd: fix mtdconcat for subpage-write NAND

PATCH In review Chris Paulson-Ellis 2 participants 2 messages Oct 12, 2007 – Oct 14, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: fix mtdconcat for subpage-write NAND

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

---

drivers/mtd/mtdconcat.c 2007-10-02 09:49:42.000000000 +0100 renamed from drivers/mtd/mtdconcat.c.orig 2007-07-09 00:32:17.000000000 +0100 +1 -0
@@ -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)
#1 lore raw
Quoted 3 lines · Chris Paulson-Ellis

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

Applied by hand; thanks. For future reference, please note your mailer mangled the whitespace -- please test sending patches to yourself first, then save them and attempt to apply them yourself.

Signature · 1 line
dwmw2