From: Ladislav Michl Date: Tue, 12 Jul 2016 18:28:21 +0000 (+0200) Subject: mtd: OneNAND: initialize mtd->writebufsize to let UBI work X-Git-Tag: v2016.09-rc1~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52486927e7f0c9ea2c5af32cc21496c908cae661;p=u-boot mtd: OneNAND: initialize mtd->writebufsize to let UBI work io_init checks this value and fails with "bad write buffer size 0 for 2048 min. I/O unit" Signed-off-by: Ladislav Michl --- diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index d194d97466..0e35dc5b88 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -2657,6 +2657,7 @@ int onenand_probe(struct mtd_info *mtd) mtd->_sync = onenand_sync; mtd->_block_isbad = onenand_block_isbad; mtd->_block_markbad = onenand_block_markbad; + mtd->writebufsize = mtd->writesize; return 0; }