提交 329b1543 编写于 作者: C Chuanhong Guo 提交者: Felix Fietkau

kernel: mtk_bmt: skip bitflip check if threshold isn't set

kernel spi-nand driver leaves this field empty and let mtd set it later.
Signed-off-by: NChuanhong Guo <gch981213@gmail.com>
(cherry-picked from commit 6fa50e26)
上级 42c8610e
......@@ -146,7 +146,7 @@ mtk_bmt_read(struct mtd_info *mtd, loff_t from,
goto out;
}
if (cur_ret >= mtd->bitflip_threshold)
if (mtd->bitflip_threshold && cur_ret >= mtd->bitflip_threshold)
mtk_bmt_remap_block(block, cur_block, mtd->erasesize);
ops->retlen += cur_ops.retlen;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册