diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2019-02-25 11:14:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-28 00:41:40 -0500 |
commit | 41e2a99fb9fa3e786c3f796d502c1babd116266f (patch) | |
tree | 71f08fac64c20d505414c81ac432a18a82270a00 | |
parent | 013ba864b0b55de05ec1a6f4a375a0db9130291c (diff) |
net: phy: marvell10g: Use the generic C45 helper to read the 2110 features
Contrary to the 3310, the 2110 PHY correctly reports it's 2.5G/5G
abilities. We can therefore use the genphy_c45_pma_read_abilities helper
to build the list of features.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/marvell10g.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index ab71da55c1e0..79106e70010f 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c | |||
@@ -472,7 +472,7 @@ static struct phy_driver mv3310_drivers[] = { | |||
472 | .phy_id = MARVELL_PHY_ID_88E2110, | 472 | .phy_id = MARVELL_PHY_ID_88E2110, |
473 | .phy_id_mask = MARVELL_PHY_ID_MASK, | 473 | .phy_id_mask = MARVELL_PHY_ID_MASK, |
474 | .name = "mv88x2110", | 474 | .name = "mv88x2110", |
475 | .features = PHY_10GBIT_FEATURES, | 475 | .get_features = genphy_c45_pma_read_abilities, |
476 | .probe = mv3310_probe, | 476 | .probe = mv3310_probe, |
477 | .soft_reset = gen10g_no_soft_reset, | 477 | .soft_reset = gen10g_no_soft_reset, |
478 | .config_init = mv3310_config_init, | 478 | .config_init = mv3310_config_init, |