]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
smsc911x: avoid PHY being resumed when interface is not up
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 27 Mar 2023 08:31:38 +0000 (10:31 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:48 +0000 (13:33 +0200)
commit335203666cc53d6418301961d3f85e9493fe9c54
treea7ade654943d6165dd45c60f5f5cea73973a1f27
parent05a971e3a3e2c2078aed6ad1c79a4ccdfa38d884
smsc911x: avoid PHY being resumed when interface is not up

BugLink: https://bugs.launchpad.net/bugs/2016878
[ Upstream commit f22c993f31fa9615df46e49cd768b713d39a852f ]

SMSC911x doesn't need mdiobus suspend/resume, that's why it sets
'mac_managed_pm'. However, setting it needs to be moved from init to
probe, so mdiobus PM functions will really never be called (e.g. when
the interface is not up yet during suspend/resume).

Fixes: 3ce9f2bef755 ("net: smsc911x: Stop and start PHY during suspend and resume")
Suggested-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230327083138.6044-1-wsa+renesas@sang-engineering.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/smsc/smsc911x.c