mpc85xx: poll PHY status
authorDavid Bauer <mail@david-bauer.net>
Mon, 20 Mar 2023 16:27:58 +0000 (17:27 +0100)
committerDavid Bauer <mail@david-bauer.net>
Mon, 20 Mar 2023 21:21:31 +0000 (22:21 +0100)
Disable interrupts for the eth-PHYs, as the interrupts are either not
firing or lost within the stack. Switch to polling the PHY status in the
meantime until a proper fix is implemented.

Ref: https://github.com/openwrt/openwrt/issues/12192

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts

index d6a8da84ef66d156b2d3a976d57b3d295e5cd708..a807403a07a43f5f26b2b47b886788d137680303 100644 (file)
 
                mdio@24000 {
                        phy0: ethernet-phy@0 {
-                               interrupts = <3 1 0 0>;
+                               /* interrupts = <3 1 0 0>; */
                                reg = <0x1>;
                        };
 
                        phy1: ethernet-phy@1 {
-                               interrupts = <2 1 0 0>;
+                               /* interrupts = <2 1 0 0>; */
                                reg = <0x2>;
                        };
                };
index bc467f6b2f61450258325fbc284c6a449e29ce9f..684bd725484d8559b8a5e61b6a43dea2ab3461bf 100644 (file)
 
                mdio@24000 {
                        phy0: ethernet-phy@0 {
-                               interrupts = <3 1 0 0>;
+                               /* interrupts = <3 1 0 0>; */
                                reg = <0x5>;
                                reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                                reset-assert-us = <10000>;
                        };
 
                        phy2: ethernet-phy@2 {
-                               interrupts = <1 1 0 0>;
+                               /* interrupts = <1 1 0 0>; */
                                reg = <0x6>;
                                reset-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                                reset-assert-us = <10000>;