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)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Feb 2025 22:19:11 +0000 (23:19 +0100)
commit37cc725b1aee994f86cd54f5a7fe10eb20a1eaf0
tree7634e44249f2847b64b7389390ccee8aacbc500e
parent122b637889c4bd3463e2ca4f07008b067ac19591
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>
(cherry picked from commit e585ae70d4f2a563b3b0e430e15ee19ad25caeb5)
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17898
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c