summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-12-23 23:26:04 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2025-04-04 14:40:19 +0100
commit746ff6622da186685103804ae4c34432532597ce (patch)
treea1d7f024299970d6de916e511d4b8ffd416e7d19
parent625e7cc4574e40fd13259bace88f3e44d5d7e1f4 (diff)
net: phy: add supported_interfaces to marvell10g PHYs
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--drivers/net/phy/marvell10g.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c
index 79c8b71321e6..791e0d22ab20 100644
--- a/drivers/net/phy/marvell10g.c
+++ b/drivers/net/phy/marvell10g.c
@@ -166,7 +166,6 @@ struct mv3310_chip {
};
struct mv3310_priv {
- DECLARE_BITMAP(supported_interfaces, PHY_INTERFACE_MODE_MAX);
const struct mv3310_mactype *mactype;
u32 firmware_ver;
@@ -614,7 +613,7 @@ static int mv3310_probe(struct phy_device *phydev)
if (ret)
return ret;
- chip->init_supported_interfaces(priv->supported_interfaces);
+ chip->init_supported_interfaces(phydev->supported_interfaces);
return phy_sfp_probe(phydev, &mv3310_sfp_ops);
}
@@ -892,7 +891,7 @@ static int mv3310_config_init(struct phy_device *phydev)
int err, mactype;
/* Check that the PHY interface type is compatible */
- if (!test_bit(phydev->interface, priv->supported_interfaces))
+ if (!test_bit(phydev->interface, phydev->supported_interfaces))
return -ENODEV;
phydev->mdix_ctrl = ETH_TP_MDI_AUTO;