]> git.itanic.dy.fi Git - linux-stable/commitdiff
ARM: dts: BCM5301X: MR26: MR32: remove bogus nand-ecc-algo property
authorChristian Lamparter <chunkeey@gmail.com>
Thu, 8 Jun 2023 15:36:27 +0000 (17:36 +0200)
committerFlorian Fainelli <florian.fainelli@broadcom.com>
Thu, 8 Jun 2023 22:30:48 +0000 (15:30 -0700)
| bcm53015-meraki-mr26.dtb: nand-controller@18028000:
|   nand@0:nand-ecc-algo:0: 'hw' is not one of ['hamming', 'bch', 'rs']
| From schema: Documentation/[...]/nand-controller.yaml
| bcm53016-meraki-mr32.dtb: nand-controller@18028000:
|   nand@0:nand-ecc-algo:0: 'hw' is not one of ['hamming', 'bch', 'rs']
| From schema: Documentation/[...]/nand-controller.yaml

original ECC values for these old Merakis are sadly not
provided by the vendor. It looks like Meraki just stuck
with what Broadcom's SDK was doing... which left this
up to the proprietary nand driver.

Note: The invalid setting was and is handled by brcmnand. It
falls back to "bch" in brcmnand_setup_dev() when ecc.algo is
set to NAND_ECC_ALGO_UNKNOWN (since "hw" is not in the list
above).

A correct nand-ecc-algo = "bch"; is already specified in the
included  "bcm5301x-nand-cs0-bch8.dtsi". So this line can be
dropped.

Reported-by: Rafał Miłecki <zajec5@gmail.com> (per Mail)
Fixes: 935327a73553 ("ARM: dts: BCM5301X: Add DT for Meraki MR26")
Fixes: ec88a9c344d9 ("ARM: BCM5301X: Add DT for Meraki MR32")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Link: https://lore.kernel.org/r/2c4d00dd40124c2ddc0b139cbce7531b108f9052.1686238550.git.chunkeey@gmail.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
arch/arm/boot/dts/bcm53015-meraki-mr26.dts
arch/arm/boot/dts/bcm53016-meraki-mr32.dts

index 24ba467c67b914db436df8aa2947b4dcbe621588..c36d3231183bd8796c4d7a251ce7b9f0e0a2c959 100644 (file)
@@ -72,8 +72,6 @@ &gmac3 {
 };
 
 &nandcs {
-       nand-ecc-algo = "hw";
-
        partitions {
                compatible = "fixed-partitions";
                #address-cells = <0x1>;
index 559d6c371d67abb26401127292c6aab425229c55..e6156fa5cb3dbe6407c205cc61ae3f7dfc786b71 100644 (file)
@@ -125,8 +125,6 @@ &pwm {
 };
 
 &nandcs {
-       nand-ecc-algo = "hw";
-
        partitions {
                /*
                 * The partition autodetection does not work for this device.