diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-23 23:24:17 +0000 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-04-04 14:40:14 +0100 |
commit | 0b54c946ec0a54659feea24e50cb389e3c3e3208 (patch) | |
tree | b67cb109d91d15b135f37bf714e5573df4db0570 | |
parent | 2b8e4af8308be58dd909022366f087790c05b4d1 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index f6e5a698f02a..7a5b8db38539 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -744,6 +744,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; |