Re: [PATCH net-next v5 15/23] net: phy: add phy_has_smarteee() helper
From: Jakub Kicinski
Date: Wed Feb 08 2023 - 00:20:57 EST
On Mon, 6 Feb 2023 14:50:42 +0100 Oleksij Rempel wrote:
> +/**
> + * phy_has_rxtstamp - Tests whether a PHY supports SmartEEE.
Function name needs to be updated
> + * @phydev: the phy_device struct
> + */
> +static inline bool phy_has_smarteee(struct phy_device *phydev)
> +{
> + return phydev && phydev->drv && !!(phydev->drv->flags & PHY_SMART_EEE);
> +}