diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-01-31 03:06:03 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 19:20:23 -0400 |
commit | b54f47c8bcfc5f766bf13ec31bd7dd1d4726d33b (patch) | |
tree | 1098468c2c8c67d847e61dd1abd23b60bdb41954 /drivers | |
parent | 3ee5014185b9041fcb27eef34c83487ce77dd9d3 (diff) |
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@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org [2.6.38+]
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 f83e4d0366cc..8808da9ee31f 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) | |||
932 | ppdata.of_node = spi->dev.of_node; | 932 | ppdata.of_node = spi->dev.of_node; |
933 | flash->mtd.dev.parent = &spi->dev; | 933 | flash->mtd.dev.parent = &spi->dev; |
934 | flash->page_size = info->page_size; | 934 | flash->page_size = info->page_size; |
935 | flash->mtd.writebufsize = flash->page_size; | ||
935 | 936 | ||
936 | if (info->addr_width) | 937 | if (info->addr_width) |
937 | flash->addr_width = info->addr_width; | 938 | flash->addr_width = info->addr_width; |