Skip to content

Commit fe71b71

Browse files
StefanoRadaelliVargregkh
authored andcommitted
net: phy: mxl-86110: Add power management and soft reset support
[ Upstream commit 62f7edd ] Implement soft_reset, suspend, and resume callbacks using genphy_soft_reset(), genphy_suspend(), and genphy_resume() to fix PHY initialization and power management issues. The soft_reset callback is needed to properly recover the PHY after an ifconfig down/up cycle. Without it, the PHY can remain in power-down state, causing MDIO register access failures during config_init(). The soft reset ensures the PHY is operational before configuration. The suspend/resume callbacks enable proper power management during system suspend/resume cycles. Fixes: b2908a9 ("net: phy: add driver for MaxLinear MxL86110 PHY") Signed-off-by: Stefano Radaelli <stefano.r@variscite.com> Link: https://patch.msgid.link/20251223120940.407195-1-stefano.r@variscite.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1511ba2 commit fe71b71

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/net/phy/mxl-86110.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,9 @@ static struct phy_driver mxl_phy_drvs[] = {
938938
PHY_ID_MATCH_EXACT(PHY_ID_MXL86110),
939939
.name = "MXL86110 Gigabit Ethernet",
940940
.config_init = mxl86110_config_init,
941+
.suspend = genphy_suspend,
942+
.resume = genphy_resume,
943+
.soft_reset = genphy_soft_reset,
941944
.get_wol = mxl86110_get_wol,
942945
.set_wol = mxl86110_set_wol,
943946
.led_brightness_set = mxl86110_led_brightness_set,

0 commit comments

Comments
 (0)