]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: m25p80: set writebufsize
authorBrian Norris <computersforpeace@gmail.com>
Tue, 31 Jan 2012 08:06:03 +0000 (00:06 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:20:23 +0000 (00:20 +0100)
commitdaf02686724af8f20b706298bdacb98afd9deebd
tree1098468c2c8c67d847e61dd1abd23b60bdb41954
parentf1feca0e5c0d9a60fdc3ef1f4932c915d2f94a67
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>
drivers/mtd/devices/m25p80.c