diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-08-16 09:32:18 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2021-02-15 13:22:17 +0000 |
commit | 0b705ce3ba635284c200c229e9891beeddbeb005 (patch) | |
tree | 9de8c4c102033ba27a8b41a4584b37a9400ec047 /include | |
parent | 5b8a31c943244f38267fe21e387cd6a7857f03f6 (diff) |
net: phy: pass supported PHY interface types to phylib
Pass the supported PHY interface types to phylib so that PHY drivers
can select an appropriate host configuration mode for their interface
according to the host capabilities.
This is only done for SFP modules presently.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index dead9f9b6b8d..de964deadcdc 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -600,6 +600,9 @@ struct phy_device { /* used with phy_speed_down */ __ETHTOOL_DECLARE_LINK_MODE_MASK(adv_old); + /* supported PHY interface types */ + DECLARE_PHY_INTERFACE_MASK(host_interfaces); + /* Energy efficient ethernet modes which should be prohibited */ u32 eee_broken_modes; |