mtd: mtdram: initialize writebufsize field

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Mar 11 10:59:03 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=07be303d22ac7e067b8a7172a4043ebe32b74b33
Commit:     07be303d22ac7e067b8a7172a4043ebe32b74b33
Parent:     37a23c20181aaddb8019f0a57bcda334412b89f8
Author:     Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
AuthorDate: Wed Feb 2 08:53:55 2011 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Mar 11 14:22:42 2011 +0000

    mtd: mtdram: initialize writebufsize field
    
    Set the 'mtd->writebufsize' field to 64 to mimic modern CFI flashes.
    
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/mtdram.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c
index 26a6e80..1483e18 100644
--- a/drivers/mtd/devices/mtdram.c
+++ b/drivers/mtd/devices/mtdram.c
@@ -121,6 +121,7 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
 	mtd->flags = MTD_CAP_RAM;
 	mtd->size = size;
 	mtd->writesize = 1;
+	mtd->writebufsize = 64; /* Mimic CFI NOR flashes */
 	mtd->erasesize = MTDRAM_ERASE_SIZE;
 	mtd->priv = mapped_address;
 



More information about the linux-mtd-cvs mailing list