mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 13:44:29 +08:00
mxs_nand: don't check zero count when ECC reading with randomizer
When enabled randomizer during ECC reading, the controller reported it's erased page. Checking zero count will cause data get modified to all 0xFF. Stop checking during randomizer to workaround this issue. Signed-off-by: Han Xu <han.xu@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
a59691280d
commit
f7bb012ab7
@ -773,8 +773,9 @@ static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand,
|
||||
continue;
|
||||
|
||||
if (status[i] == 0xff) {
|
||||
if (is_mx6dqp() || is_mx7() ||
|
||||
is_mx6ul() || is_imx8() || is_imx8m())
|
||||
if (!nand_info->en_randomizer &&
|
||||
(is_mx6dqp() || is_mx7() || is_mx6ul() ||
|
||||
is_imx8() || is_imx8m()))
|
||||
if (readl(&bch_regs->hw_bch_debug1))
|
||||
flag = 1;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user