]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: mxl-86110: Add power management and soft reset support
authorStefano Radaelli <stefano.r@variscite.com>
Tue, 23 Dec 2025 12:09:39 +0000 (13:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:23 +0000 (16:35 +0100)
commitfe71b71f0fe05e38fdab34a71f26c53e3b09f17c
treeb4cc51d5280f4e8f8a6b943c78168163e514dd55
parent1511ba2d68467ab1259d3524dd804d371aadb9dc
net: phy: mxl-86110: Add power management and soft reset support

[ Upstream commit 62f7edd59964eb588e96fce1ad35a2327ea54424 ]

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: b2908a989c59 ("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>
drivers/net/phy/mxl-86110.c