[openwrt/openwrt] mediatek: bmt: set default bmt oob offset to 0

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 26 20:31:43 PDT 2021


981213 pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9abd2fb6c4dd3befa80a5721e7a6bc77506ac778

commit 9abd2fb6c4dd3befa80a5721e7a6bc77506ac778
Author: Chuanhong Guo <gch981213 at gmail.com>
AuthorDate: Tue Aug 24 11:23:21 2021 +0800

    mediatek: bmt: set default bmt oob offset to 0
    
    there's no driver level remapping of oob data in the new spi-nand
    driver and bmt oob signature starts at 0x0 of the dumped oob data.
    change the default value to 0 for the new spi-nand driver.
    
    Signed-off-by: Chuanhong Guo <gch981213 at gmail.com>
---
 target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch b/target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch
index ca1e74b863..363d0b857e 100644
--- a/target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch
+++ b/target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch
@@ -700,7 +700,7 @@
 +
 +	if (of_property_read_u8(np, "mediatek,bmt-oob-offset",
 +				 &bmtd.oob_offset) != 0)
-+		bmtd.oob_offset = 8;
++		bmtd.oob_offset = 0;
 +
 +	if (of_property_read_u32(np, "mediatek,bmt-table-size",
 +				 &bmt_table_size) != 0)



More information about the lede-commits mailing list