Skip to content

Commit 7be3ad8

Browse files
hkallweitdavem330
authored andcommitted
net: phy: remove gen10g_no_soft_reset
genphy_no_soft_reset and gen10g_no_soft_reset are both the same no-ops, one is enough. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d81210c commit 7be3ad8

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

drivers/net/phy/cortina.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static struct phy_driver cortina_driver[] = {
8282
.features = PHY_10GBIT_FEATURES,
8383
.config_aneg = gen10g_config_aneg,
8484
.read_status = cortina_read_status,
85-
.soft_reset = gen10g_no_soft_reset,
85+
.soft_reset = genphy_no_soft_reset,
8686
.probe = cortina_probe,
8787
},
8888
};

drivers/net/phy/marvell10g.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ static struct phy_driver mv3310_drivers[] = {
459459
.phy_id_mask = MARVELL_PHY_ID_MASK,
460460
.name = "mv88x3310",
461461
.get_features = mv3310_get_features,
462-
.soft_reset = gen10g_no_soft_reset,
462+
.soft_reset = genphy_no_soft_reset,
463463
.config_init = mv3310_config_init,
464464
.probe = mv3310_probe,
465465
.suspend = mv3310_suspend,
@@ -474,7 +474,7 @@ static struct phy_driver mv3310_drivers[] = {
474474
.name = "mv88x2110",
475475
.get_features = genphy_c45_pma_read_abilities,
476476
.probe = mv3310_probe,
477-
.soft_reset = gen10g_no_soft_reset,
477+
.soft_reset = genphy_no_soft_reset,
478478
.config_init = mv3310_config_init,
479479
.config_aneg = mv3310_config_aneg,
480480
.aneg_done = mv3310_aneg_done,

drivers/net/phy/phy-c45.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -508,18 +508,11 @@ static int gen10g_read_status(struct phy_device *phydev)
508508
return genphy_c45_read_link(phydev);
509509
}
510510

511-
int gen10g_no_soft_reset(struct phy_device *phydev)
512-
{
513-
/* Do nothing for now */
514-
return 0;
515-
}
516-
EXPORT_SYMBOL_GPL(gen10g_no_soft_reset);
517-
518511
struct phy_driver genphy_10g_driver = {
519512
.phy_id = 0xffffffff,
520513
.phy_id_mask = 0xffffffff,
521514
.name = "Generic 10G PHY",
522-
.soft_reset = gen10g_no_soft_reset,
515+
.soft_reset = genphy_no_soft_reset,
523516
.features = PHY_10GBIT_FEATURES,
524517
.config_aneg = gen10g_config_aneg,
525518
.read_status = gen10g_read_status,

drivers/net/phy/teranetics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static struct phy_driver teranetics_driver[] = {
7878
.phy_id_mask = 0xffffffff,
7979
.name = "Teranetics TN2020",
8080
.features = PHY_10GBIT_FEATURES,
81-
.soft_reset = gen10g_no_soft_reset,
81+
.soft_reset = genphy_no_soft_reset,
8282
.aneg_done = teranetics_aneg_done,
8383
.config_aneg = gen10g_config_aneg,
8484
.read_status = teranetics_read_status,

include/linux/phy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,6 @@ int genphy_c45_read_status(struct phy_device *phydev);
11191119

11201120
/* The gen10g_* functions are the old Clause 45 stub */
11211121
int gen10g_config_aneg(struct phy_device *phydev);
1122-
int gen10g_no_soft_reset(struct phy_device *phydev);
11231122

11241123
static inline int phy_read_status(struct phy_device *phydev)
11251124
{

0 commit comments

Comments
 (0)