diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-03-03 11:57:39 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-29 01:19:22 +0100 |
commit | 82160523267d3c73befba80ab5fa3aa9ebc43c83 (patch) | |
tree | 76a6d4d72c74d1dfd5c91dbfbb27de9f80822bb9 /drivers/net/phy/phylink.c | |
parent | 52e4f932d4e1afbc8fc07436c3e4ae7927f7541d (diff) |
net: sfp: add interface bitmap
Add parsing the SFP EEPROM to supported phy interface modes.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/phy/phylink.c')
-rw-r--r-- | drivers/net/phy/phylink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 0da7bbe6ce53..92b0fe7f066f 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -2096,11 +2096,12 @@ static int phylink_sfp_module_insert(void *upstream, { struct phylink *pl = upstream; unsigned long *support = pl->sfp_support; + DECLARE_PHY_INTERFACE_MASK(sfp_interfaces); ASSERT_RTNL(); linkmode_zero(support); - sfp_parse_support(pl->sfp_bus, id, support); + sfp_parse_support(pl->sfp_bus, id, support, sfp_interfaces); pl->sfp_port = sfp_parse_port(pl->sfp_bus, id, support); /* If this module may have a PHY connecting later, defer until later */ |