Commit b54f47c8 authored by Brian Norris's avatar Brian Norris Committed by David Woodhouse

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: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org [2.6.38+]
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 3ee50141
...@@ -932,6 +932,7 @@ static int __devinit m25p_probe(struct spi_device *spi) ...@@ -932,6 +932,7 @@ static int __devinit m25p_probe(struct spi_device *spi)
ppdata.of_node = spi->dev.of_node; ppdata.of_node = spi->dev.of_node;
flash->mtd.dev.parent = &spi->dev; flash->mtd.dev.parent = &spi->dev;
flash->page_size = info->page_size; flash->page_size = info->page_size;
flash->mtd.writebufsize = flash->page_size;
if (info->addr_width) if (info->addr_width)
flash->addr_width = info->addr_width; flash->addr_width = info->addr_width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment