From: David Bauer Date: Mon, 20 Mar 2023 16:27:58 +0000 (+0100) Subject: mpc85xx: poll PHY status X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cff40ef1226eeb9900622941c51c9c9c6b0a732f;p=openwrt%2Fstaging%2Fnbd.git mpc85xx: poll PHY status 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 --- diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts index d6a8da84ef..a807403a07 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts @@ -207,12 +207,12 @@ 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>; }; }; diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts index bc467f6b2f..684bd72548 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts @@ -144,7 +144,7 @@ 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>; @@ -152,7 +152,7 @@ }; 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>;