Skip to content

Commit c5e91d3

Browse files
hkallweitdavem330
authored andcommitted
net: phy: remove gen10g_config_init
ETHTOOL_LINK_MODE_10000baseT_Full_BIT is set anyway in the supported and advertising bitmap because it's part of PHY_10GBIT_FEATURES. And all users of gen10g_config_init use PHY_10GBIT_FEATURES. 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 a6d0aa9 commit c5e91d3

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

drivers/net/phy/cortina.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static struct phy_driver cortina_driver[] = {
8080
.phy_id_mask = 0xffffffff,
8181
.name = "Cortina CS4340",
8282
.features = PHY_10GBIT_FEATURES,
83-
.config_init = gen10g_config_init,
8483
.config_aneg = gen10g_config_aneg,
8584
.read_status = cortina_read_status,
8685
.soft_reset = gen10g_no_soft_reset,

drivers/net/phy/phy-c45.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -516,25 +516,11 @@ int gen10g_no_soft_reset(struct phy_device *phydev)
516516
}
517517
EXPORT_SYMBOL_GPL(gen10g_no_soft_reset);
518518

519-
int gen10g_config_init(struct phy_device *phydev)
520-
{
521-
/* Temporarily just say we support everything */
522-
linkmode_zero(phydev->supported);
523-
524-
linkmode_set_bit(ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
525-
phydev->supported);
526-
linkmode_copy(phydev->advertising, phydev->supported);
527-
528-
return 0;
529-
}
530-
EXPORT_SYMBOL_GPL(gen10g_config_init);
531-
532519
struct phy_driver genphy_10g_driver = {
533520
.phy_id = 0xffffffff,
534521
.phy_id_mask = 0xffffffff,
535522
.name = "Generic 10G PHY",
536523
.soft_reset = gen10g_no_soft_reset,
537-
.config_init = gen10g_config_init,
538524
.features = PHY_10GBIT_FEATURES,
539525
.config_aneg = gen10g_config_aneg,
540526
.read_status = gen10g_read_status,

drivers/net/phy/teranetics.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static struct phy_driver teranetics_driver[] = {
8080
.features = PHY_10GBIT_FEATURES,
8181
.soft_reset = gen10g_no_soft_reset,
8282
.aneg_done = teranetics_aneg_done,
83-
.config_init = gen10g_config_init,
8483
.config_aneg = gen10g_config_aneg,
8584
.read_status = teranetics_read_status,
8685
.match_phy_device = teranetics_match_phy_device,

include/linux/phy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,6 @@ int genphy_c45_read_status(struct phy_device *phydev);
11211121
int gen10g_config_aneg(struct phy_device *phydev);
11221122
int gen10g_read_status(struct phy_device *phydev);
11231123
int gen10g_no_soft_reset(struct phy_device *phydev);
1124-
int gen10g_config_init(struct phy_device *phydev);
11251124

11261125
static inline int phy_read_status(struct phy_device *phydev)
11271126
{

0 commit comments

Comments
 (0)