mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-20 17:32:57 +00:00
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: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
parent
55be011a71
commit
6fa50e26e7
@ -146,7 +146,7 @@ mtk_bmt_read(struct mtd_info *mtd, loff_t from,
|
|||||||
goto out;
|
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);
|
mtk_bmt_remap_block(block, cur_block, mtd->erasesize);
|
||||||
|
|
||||||
ops->retlen += cur_ops.retlen;
|
ops->retlen += cur_ops.retlen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user