mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
pxa3xx_nand: reset read buffer before reading
Initialize the read buffer content to 0xFF. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
parent
a88bdbb54a
commit
7ce33aff68
1 changed files with 1 additions and 0 deletions
|
@ -670,6 +670,7 @@ static void pxa3xx_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
|
|||
/* disable HW ECC to get all the OOB data */
|
||||
info->buf_count = mtd->writesize + mtd->oobsize;
|
||||
info->buf_start = mtd->writesize + column;
|
||||
memset(info->data_buff, 0xFF, info->buf_count);
|
||||
|
||||
if (prepare_read_prog_cmd(info, cmdset->read1, column, page_addr))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue