]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: phy: marvell10g: Use the generic C45 helper to read the 2110 features
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Mon, 25 Feb 2019 16:14:07 +0000 (17:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 05:41:40 +0000 (21:41 -0800)
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>
drivers/net/phy/marvell10g.c

index ab71da55c1e0514fea8b37bcf303a8291dc0b25c..79106e70010fdee56dd3314d59bd72212d5e3165 100644 (file)
@@ -472,7 +472,7 @@ static struct phy_driver mv3310_drivers[] = {
                .phy_id         = MARVELL_PHY_ID_88E2110,
                .phy_id_mask    = MARVELL_PHY_ID_MASK,
                .name           = "mv88x2110",
-               .features       = PHY_10GBIT_FEATURES,
+               .get_features   = genphy_c45_pma_read_abilities,
                .probe          = mv3310_probe,
                .soft_reset     = gen10g_no_soft_reset,
                .config_init    = mv3310_config_init,