projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b93e5
)
mtd: OneNAND: initialize mtd->writebufsize to let UBI work
author
Ladislav Michl
<ladis@linux-mips.org>
Tue, 12 Jul 2016 18:28:21 +0000
(20:28 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 22 Jul 2016 18:46:12 +0000
(14:46 -0400)
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>
drivers/mtd/onenand/onenand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/onenand/onenand_base.c
b/drivers/mtd/onenand/onenand_base.c
index
d194d97
..
0e35dc5
100644
(file)
--- 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;
}