]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: m25p80: set writebufsize
authorBrian Norris <computersforpeace@gmail.com>
Tue, 31 Jan 2012 08:06:03 +0000 (00:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 15:14:05 +0000 (08:14 -0700)
commit19f0f33c99c20ba6d34ab935642cf98fa23d0ca3
treea8a2553f4381d0624cd685a6643a278248535a5c
parenta4585d8f7a51e32175eed9cdcb85bbe7df84e035
mtd: m25p80: set writebufsize

commit b54f47c8bcfc5f766bf13ec31bd7dd1d4726d33b upstream.

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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/devices/m25p80.c