From ef4f44d924c1167d8a02a4457ff3b2f1bcd72de2 Mon Sep 17 00:00:00 2001 From: Vince JV <1276544+vincejv@users.noreply.github.com> Date: Sat, 29 Jun 2024 15:18:05 +0800 Subject: [PATCH] Fix mediatek filogic --- .../hack-6.6/765-mxl-gpy-control-LED-reg-from-DT.patch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target/linux/generic/hack-6.6/765-mxl-gpy-control-LED-reg-from-DT.patch b/target/linux/generic/hack-6.6/765-mxl-gpy-control-LED-reg-from-DT.patch index c5da2df3c87c25..d313e46b4f8b8c 100644 --- a/target/linux/generic/hack-6.6/765-mxl-gpy-control-LED-reg-from-DT.patch +++ b/target/linux/generic/hack-6.6/765-mxl-gpy-control-LED-reg-from-DT.patch @@ -55,7 +55,7 @@ Signed-off-by: David Bauer #define PHY_PMA_MGBT_POLARITY 0x82 #define PHY_MDI_MDI_X_MASK GENMASK(1, 0) #define PHY_MDI_MDI_X_NORMAL 0x3 -@@ -228,7 +235,8 @@ static int gpy_ack_interrupt(struct phy_ +@@ -228,7 +235,8 @@ static int gpy_ack_interrupt(struct phy_device *phydev) /* Clear all pending interrupts */ ret = phy_read(phydev, PHY_ISTAT); @@ -65,7 +65,7 @@ Signed-off-by: David Bauer } static int gpy_mbox_read(struct phy_device *phydev, u32 addr) -@@ -270,6 +278,35 @@ out: +@@ -270,10 +278,41 @@ out: return ret; } @@ -101,3 +101,9 @@ Signed-off-by: David Bauer static int gpy_config_init(struct phy_device *phydev) { /* Nothing to configure. Configuration Requirement Placeholder */ + return 0; ++ ++ return gpy_led_write(phydev); + } + + static int gpy_probe(struct phy_device *phydev)