[PATCH net-next v2 3/4] net: phy: smsc: fix and improve WoL support
Russell King (Oracle)
linux at armlinux.org.uk
Wed Sep 17 08:54:38 PDT 2025
On Wed, Sep 17, 2025 at 05:36:38PM +0200, Gatien Chevallier wrote:
> @@ -673,6 +726,9 @@ int smsc_phy_probe(struct phy_device *phydev)
>
> phydev->priv = priv;
>
> + if (phydev->drv->set_wol)
> + device_set_wakeup_capable(&phydev->mdio.dev, true);
This suggests that you know that this device is _always_ capable of
waking the system up, irrespective of the properties of e.g. the
interrupt controller. If this is not the case, please consider the
approach I took in the realtek driver.
In that case, you also need to add checks in the get_wol() and
set_wol() methods to refuse WoL configuration, and to report that
WoL is not supported.
Thanks.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list