[PATCH net v2 1/2] net: phylink: allow stopping a suspended instance
Andrew Lunn
andrew at lunn.ch
Tue Sep 22 17:40:19 PDT 2026
On Tue, Sep 22, 2026 at 05:27:40PM -0600, James Hilliard wrote:
> If a network driver's system resume fails before phylink_resume(), the
> network device can remain administratively up with phylink suspended.
> Closing the interface then needs to terminate that suspended instance.
> Calling phylink_resume() merely to make phylink_stop() work is not a safe
> substitute: resume reconfigures the MAC and restarts link resolution,
> although the driver has not successfully restored the MAC.
The first thing phylink_resume() does is:
if (phylink_phy_pm_speed_ctrl(pl))
phylink_speed_up(pl);
Is it guaranteed that phylink_stop() followed by phylink_start() will
somehow do the equivalent?
Andrew
More information about the linux-arm-kernel
mailing list