mediatek: fix nmbm configuration mismatch (Xiaomi AX3000t)
authorMikhail Zhilkin <csharper2005@gmail.com>
Tue, 4 Feb 2025 16:08:53 +0000 (16:08 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Feb 2025 22:19:11 +0000 (23:19 +0100)
commitdb30b60bf13b17d24b4d3643780d1658cac24974
tree3fba02f92da05b13260d758f970caa875575c463
parent37cc725b1aee994f86cd54f5a7fe10eb20a1eaf0
mediatek: fix nmbm configuration mismatch (Xiaomi AX3000t)

This commit fixes nmbm configuration mismatch error on Xiaomi AX3000t
with Winbond W25N01KVZEIR spi-nand:
'''
[    0.786783] NMBM configuration mismatch
'''

Root cause:
1. U-Boot W25N01KV spi-nand driver ia compiled with 64B OOB size for the
   chip and store this size in the nmbm signature;
2. Linux W25N01KV driver use 96B OOB.

The change doesn't affect AX3000t variants with other spi-nand chips
(ESMT, Foresee) because their Linux drivers use 64B OOB.

Fixes: openwrt#16972
Tested-by: Aleksandr Danilov <sc16me@gmail.com>
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 3299d19c01080c3320e3ff6964d7825da81bb8b4)
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/mediatek/dts/mt7981b-xiaomi-mi-router-ax3000t.dts