[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1e4d3ec3-2e20-46a3-95d3-d3e3c22db4bc@bootlin.com>
Date: Wed, 22 Oct 2025 15:34:14 +0200
From: Maxime Chevallier <maxime.chevallier@...tlin.com>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>
Cc: Alexandre Torgue <alexandre.torgue@...s.st.com>,
Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, linux-arm-kernel@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@...il.com>, netdev@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH net-next 1/6] net: phy: add phy_can_wakeup()
On 17/10/2025 14:04, Russell King (Oracle) wrote:
> Add phy_can_wakeup() to report whether the PHY driver has marked the
> PHY device as being wake-up capable as far as the driver model is
> concerned.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@...tlin.com>
Maxime
> ---
> include/linux/phy.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 3c7634482356..3eeeaec52832 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -1379,6 +1379,18 @@ static inline void phy_disable_eee_mode(struct phy_device *phydev, u32 link_mode
> linkmode_clear_bit(link_mode, phydev->advertising_eee);
> }
>
> +/**
> + * phy_can_wakeup() - indicate whether PHY has driver model wakeup capabilities
> + * @phydev: The phy_device struct
> + *
> + * Returns: true/false depending on the PHY driver's device_set_wakeup_capable()
> + * setting.
> + */
> +static inline bool phy_can_wakeup(struct phy_device *phydev)
> +{
> + return device_can_wakeup(&phydev->mdio.dev);
> +}
> +
> void phy_resolve_aneg_pause(struct phy_device *phydev);
> void phy_resolve_aneg_linkmode(struct phy_device *phydev);
>
Powered by blists - more mailing lists