summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-12-23 23:24:17 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-06-21 10:57:40 +0100
commit75a64b93c7ab98295c6dff0d63b8695853167040 (patch)
tree6555f197c75fec4e2f0b636d0180f6ce509b3e44
parent6e7206481d21195bdfb99e3b49e742f47f606b8e (diff)
net: phy: add supported_interfaces to phylib
Add a supported_interfaces member to phylib so we know which interfaces a PHY supports. Currently, set any unconverted driver to indicate all interfaces are supported. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 6e74a71b68fd..f7f5df8c2500 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -662,6 +662,9 @@ struct phy_device {
/* used with phy_speed_down */
__ETHTOOL_DECLARE_LINK_MODE_MASK(adv_old);
+ /* supported PHY interface types */
+ DECLARE_PHY_INTERFACE_MASK(supported_interfaces);
+
/* Energy efficient ethernet modes which should be prohibited */
u32 eee_broken_modes;