diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-11-08 08:07:10 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-14 18:01:37 -0800 |
commit | ed623fb8e38e2a241da12864778ec9c9cf930c65 (patch) | |
tree | fbc688922542fa0de7c8c049e1773113b7544fe3 /include/linux/phy.h | |
parent | 721aa69e708b7432af83c4bb00a30e2b7c27da28 (diff) |
net: phy: add phy_set_eee_broken
Add an accessor for eee_broken_modes, so that drivers
don't have to deal with phylib internals.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/0f8ee279-d40d-4489-a3b0-d993472d744a@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index a6622f873d03..b8346db42727 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1264,6 +1264,16 @@ void of_set_phy_timing_role(struct phy_device *phydev); int phy_speed_down_core(struct phy_device *phydev); /** + * phy_set_eee_broken - Mark an EEE mode as broken so that it isn't advertised. + * @phydev: The phy_device struct + * @link_mode: The broken EEE mode + */ +static inline void phy_set_eee_broken(struct phy_device *phydev, u32 link_mode) +{ + linkmode_set_bit(link_mode, phydev->eee_broken_modes); +} + +/** * phy_is_started - Convenience function to check whether PHY is started * @phydev: The phy_device struct */ |