diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2016-07-12 18:28:21 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-22 18:46:12 (GMT) |
commit | 52486927e7f0c9ea2c5af32cc21496c908cae661 (patch) | |
tree | bd8b5e8ab9b447c104c4809aa119a30413492c96 | |
parent | 77b93e5e9b28328f76556e0c0b94889df47077d7 (diff) | |
download | u-boot-fsl-qoriq-52486927e7f0c9ea2c5af32cc21496c908cae661.tar.xz |
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 <ladis@linux-mips.org>
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index d194d97..0e35dc5 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; } |