Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: mtdram: initialize writebufsize field

Set the 'mtd->writebufsize' field to 64 to mimic modern CFI flashes.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Artem Bityutskiy and committed by
David Woodhouse
07be303d 37a23c20

+1
+1
drivers/mtd/devices/mtdram.c
··· 121 121 mtd->flags = MTD_CAP_RAM; 122 122 mtd->size = size; 123 123 mtd->writesize = 1; 124 + mtd->writebufsize = 64; /* Mimic CFI NOR flashes */ 124 125 mtd->erasesize = MTDRAM_ERASE_SIZE; 125 126 mtd->priv = mapped_address; 126 127