mediatek: bmt: set default bmt oob offset to 0
authorChuanhong Guo <gch981213@gmail.com>
Tue, 24 Aug 2021 03:23:21 +0000 (11:23 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Fri, 27 Aug 2021 02:26:25 +0000 (10:26 +0800)
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@gmail.com>
target/linux/mediatek/patches-5.10/330-mtk-bmt-support.patch

index ca1e74b863e17cdf3efe3862f49760b1abad849b..363d0b857e5c817f33af28a43e96af1994e324c7 100644 (file)
 +
 +      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)