summaryrefslogtreecommitdiff
path: root/drivers/net/phy/marvell10g.c
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>2024-04-27 16:55:06 +0100
commit7dfe02ea6b02e5419480a45c84031d418bf8e23f (patch)
treead2afea780d6cf49135b7d95a6beb558ca869ae9 /drivers/net/phy/marvell10g.c
parent997b599cf73dd87e4c0519ecfe757f01bd3c90bb (diff)
net: phy: add supported_interfaces to marvell10g PHYs
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/phy/marvell10g.c')
-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 5aa810807b36..eb05a578dbd7 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;
@@ -612,7 +611,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);
}
@@ -890,7 +889,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;