ramips: dts: mt7628an: reset FE and ESW cores together
authorMaxim Anisimov <maxim.anisimov.ua@gmail.com>
Sun, 10 Dec 2023 15:40:39 +0000 (16:40 +0100)
committerLech Perczak <lech.perczak@gmail.com>
Thu, 4 Jan 2024 21:29:32 +0000 (22:29 +0100)
Failing to do so will cause the DMA engine to not initialize properly
and fail to forward packets between them, and in some cases will cause
spurious transmission with size exceeding allowed packet size, causing a
kernel panic.

Fixes: 60fadae62b64 ("ramips: ethernet: ralink: move reset of the esw into the esw instead of fe")
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
[Provide commit description, split into logical changes]
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
(cherry picked from commit f87b66507e9245e6e02dbc76e2e7b27c9e0bf364)
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/ramips/dts/mt7628an.dtsi

index 7bc001207bcf036d77403ab2b5013db9abde7c73..dafccb33fddb1db8814061e968c20723c55b3dfa 100644 (file)
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
 
-               resets = <&rstctrl 21>;
-               reset-names = "fe";
+               resets = <&rstctrl 21>, <&rstctrl 23>;
+               reset-names = "fe", "esw";
 
                mediatek,switch = <&esw>;
        };
                compatible = "mediatek,mt7628-esw", "ralink,rt3050-esw";
                reg = <0x10110000 0x8000>;
 
-               resets = <&rstctrl 23 &rstctrl 24>;
-               reset-names = "esw", "ephy";
+               resets = <&rstctrl 24>;
+               reset-names = "ephy";
 
                interrupt-parent = <&intc>;
                interrupts = <17>;