ath79: set 2048B ECC size for Mikrotik boards using soft ECC
authorLech Perczak <lech.perczak@gmail.com>
Mon, 1 May 2023 22:51:49 +0000 (00:51 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 13 May 2023 22:08:35 +0000 (00:08 +0200)
Two Mikrotik board families (SXT 5nD R2 and Routerboard 92x are using
software ECC on NAND. Some of them use chips capable of subpage write,
others do not - within the same family, and a common block size is
required for UBI, to avoid mounting errors. Set the ECC step size
explicitly for them to 2048B, so UBI can mount existing volumes without
problems, at the same time allowing to unlocking subpage write functionality,
reuqired for Meraki MR18.

Fixes: 6561ca1fa51 ("ath79: ar934x: fix mounting issues if subpage is not supported")
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd-r2.dts
target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi

index c8b1183d70c9d7f0ebd46dcf1858c71ddc00b9ce..a4485320345c1a9c77b9c3ce572c226a1e778319 100644 (file)
@@ -87,6 +87,7 @@
        status = "okay";
 
        nand-ecc-mode = "soft";
+       nand-ecc-step-size = <2048>;
        qca,nand-swap-dma;
        qca,nand-scan-fixup;
 
index 7b7e3a65f87ab2886ac9a36b92931d78cdcc9573..d668259b1b0025ae49b416b8e2ecde47a58a97f5 100644 (file)
        status = "okay";
 
        nand-ecc-mode = "soft";
+       nand-ecc-step-size = <2048>;
        qca,nand-swap-dma;
        qca,nand-scan-fixup;