mtd: m25p80: set writebufsize
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Mar 26 20:59:06 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=b54f47c8bcfc5f766bf13ec31bd7dd1d4726d33b
Commit: b54f47c8bcfc5f766bf13ec31bd7dd1d4726d33b
Parent: 3ee5014185b9041fcb27eef34c83487ce77dd9d3
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Tue Jan 31 00:06:03 2012 -0800
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 00:20:23 2012 +0100
mtd: m25p80: set writebufsize
Using UBI on m25p80 can give messages like:
UBI error: io_init: bad write buffer size 0 for 1 min. I/O unit
We need to initialize writebufsize; I think "page_size" is the correct
"bufsize", although I'm not sure. Comments?
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Cc: stable at kernel.org [2.6.38+]
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/devices/m25p80.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index f83e4d0..8808da9 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -932,6 +932,7 @@ static int __devinit m25p_probe(struct spi_device *spi)
ppdata.of_node = spi->dev.of_node;
flash->mtd.dev.parent = &spi->dev;
flash->page_size = info->page_size;
+ flash->mtd.writebufsize = flash->page_size;
if (info->addr_width)
flash->addr_width = info->addr_width;
More information about the linux-mtd-cvs
mailing list