[PATCH net-next 2/6] net: phy: add phy_may_wakeup()
Florian Fainelli
f.fainelli at gmail.com
Wed Oct 22 11:14:08 PDT 2025
On 10/17/25 05:04, Russell King (Oracle) wrote:
> Add phy_may_wakeup() which uses the driver model's device_may_wakeup()
> when the PHY driver has marked the device as wakeup capable in the
> driver model, otherwise use phy_drv_wol_enabled().
>
> Replace the sites that used to call phy_drv_wol_enabled() with this
> as checking the driver model will be more efficient than checking the
> WoL state.
>
> Export phy_may_wakeup() so that phylink can use it.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
--
Florian
More information about the linux-arm-kernel
mailing list