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>2025-09-29 10:14:51 +0100
commitc76abec38e5b564d49cb85100190a63390e43a89 (patch)
tree1473d76affeb1b00c4985a4821e343c2f60bf58c
parentf39d726171dc61428d288511efadf46a06b7775c (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 7f8967b2c673..6a1155731f7b 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -724,6 +724,9 @@ struct phy_device {
/* Host supported PHY interface types. Should be ignored if empty. */
DECLARE_PHY_INTERFACE_MASK(host_interfaces);
+ /* supported PHY interface types */
+ DECLARE_PHY_INTERFACE_MASK(supported_interfaces);
+
#ifdef CONFIG_LED_TRIGGER_PHY
struct phy_led_trigger *phy_led_triggers;
unsigned int phy_num_led_triggers;