projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42c8610
)
kernel: mtk_bmt: skip bitflip check if threshold isn't set
author
Chuanhong Guo
<gch981213@gmail.com>
Thu, 7 Apr 2022 01:56:02 +0000
(09:56 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 10 Oct 2022 10:58:41 +0000
(12:58 +0200)
kernel spi-nand driver leaves this field empty and let mtd set it later.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(cherry-picked from commit
6fa50e26e7c1221085d8e71cde7e9148c540c752
)
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
b/target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
index f1df4a11f12dad104a39f9c7b886a15584d14c02..bcff7d6ac8207644d667a6e35aca5a12dcfab828 100644
(file)
--- a/
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
+++ b/
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
@@
-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;