Thread (41 messages) flat view 41 messages, 7 authors, 2025-02-26

RE: [PATCH net-next 0/9] net: add phylink managed EEE support

From: Jiawen Wu <jiawenwu@trustnetic.com>
Date: 2025-01-20 10:04:48
Also in: linux-arm-kernel

quoted
quoted
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 66eea3f963d3..56d411bb2547 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -2268,7 +2268,11 @@ static int phylink_bringup_phy(struct phylink *pl, struct phy_device *phy,
 	/* Explicitly configure whether the PHY is allowed to stop it's
 	 * receive clock.
 	 */
-	return phy_eee_rx_clock_stop(phy, pl->config->eee_rx_clk_stop_enable);
+	ret = phy_eee_rx_clock_stop(phy, pl->config->eee_rx_clk_stop_enable);
+	if (ret == -EOPNOTSUPP)
+		ret = 0;
+
+	return ret;
 }

 static int phylink_attach_phy(struct phylink *pl, struct phy_device *phy,
Test pass.
Thanks.
Thanks, I guess that's a tested-by then?
Yes, for this patch,

Tested-by: Jiawen Wu <jiawenwu@trustnetic.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help