public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [RFC/PATCH] mtd: m25p80: set writebufsize
@ 2012-01-31  8:06 Brian Norris
  2012-01-31 14:08 ` Shawn J. Goff
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Norris @ 2012-01-31  8:06 UTC (permalink / raw)
  To: linux-mtd; +Cc: Kevin Cernekee, Brian Norris, agust, Artem Bityutskiy

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@gmail.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;
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-03  7:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31  8:06 [RFC/PATCH] mtd: m25p80: set writebufsize Brian Norris
2012-01-31 14:08 ` Shawn J. Goff
2012-01-31 17:46   ` Brian Norris
2012-02-01  9:11     ` Shmulik Ladkani
2012-02-03  6:14       ` Artem Bityutskiy
2012-02-03  7:52         ` Shmulik Ladkani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox