[openwrt/openwrt] mpc85xx: poll PHY status

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 20 14:21:46 PDT 2023


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/cff40ef1226eeb9900622941c51c9c9c6b0a732f

commit cff40ef1226eeb9900622941c51c9c9c6b0a732f
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Mon Mar 20 17:27:58 2023 +0100

    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 <mail at david-bauer.net>
---
 target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts | 4 ++--
 target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

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 at 24000 {
 			phy0: ethernet-phy at 0 {
-				interrupts = <3 1 0 0>;
+				/* interrupts = <3 1 0 0>; */
 				reg = <0x1>;
 			};
 
 			phy1: ethernet-phy at 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 at 24000 {
 			phy0: ethernet-phy at 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 at 2 {
-				interrupts = <1 1 0 0>;
+				/* interrupts = <1 1 0 0>; */
 				reg = <0x6>;
 				reset-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
 				reset-assert-us = <10000>;




More information about the lede-commits mailing list