kernel: nmbm: add mediatek,bmt-mtd-overridden-oobsize property
authorMikhail Zhilkin <csharper2005@gmail.com>
Tue, 4 Feb 2025 15:55:08 +0000 (15:55 +0000)
committerRobert Marko <robimarko@gmail.com>
Fri, 7 Feb 2025 08:04:35 +0000 (09:04 +0100)
commite585ae70d4f2a563b3b0e430e15ee19ad25caeb5
tree7ed6da9e84bf0ab2d9172fef72a3a95b3c6aa0fa
parent98d7f4202fe9861fcdc64d694aecf6945bbc7de8
kernel: nmbm: add mediatek,bmt-mtd-overridden-oobsize property

This commit adds new "mediatek,bmt-mtd-overridden-oobsize" property. The
property helps avoid "NMBM configuration mismatch" error if mtd "OOB size"
is not equal to the "spare size" which is stored in the nmbm signature.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17549
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c