mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
ipq806x: nand: Add missing writebufsize initialization for ubi fastmap
The writebufsize is introduced in mtd struct for the ubi fastmap support. This is not initialized in the qpic nand driver which leads to ubi error. Fixed the following ubi error. bad write buffer size 0 for 2048 min. I/O unit UBI init error 22 Change-Id: I35778366b95930bd01108bf300f073ee21940bc6 Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
This commit is contained in:
parent
f6e3a7cfb2
commit
d38583f326
1 changed files with 1 additions and 0 deletions
|
|
@ -1476,6 +1476,7 @@ int ipq_nand_get_info_onfi(struct mtd_info *mtd)
|
|||
hw2memcpy(p, ®s->buffn_acc[0], sizeof(struct nand_onfi_params));
|
||||
|
||||
mtd->writesize = le32_to_cpu(p->byte_per_page);
|
||||
mtd->writebufsize = mtd->writesize;
|
||||
mtd->erasesize = le32_to_cpu(p->pages_per_block) * mtd->writesize;
|
||||
mtd->oobsize = le16_to_cpu(p->spare_bytes_per_page);
|
||||
mtd->size = (uint64_t)le32_to_cpu(p->blocks_per_lun) * (mtd->erasesize);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue