summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-08-17 12:29:54 +0200
committerDavid S. Miller <davem@davemloft.net>2019-08-17 12:34:50 -0700
commit00843d99ce15348775db3a9d043d4f7b714be73b (patch)
tree4811f265abc9f4cd561a86763a6ec4dab0906609 /net/dsa
parentc227ce4423855bddb41a05ad25a93f13b96c89bd (diff)
downloadlinux-00843d99ce15348775db3a9d043d4f7b714be73b.tar.bz2
net: dsa: remove calls to genphy_config_init
Supported PHY features are either auto-detected or explicitly set. In both cases calling genphy_config_init isn't needed. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/port.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/dsa/port.c b/net/dsa/port.c
index f071acf2842b..f75301456430 100644
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -538,10 +538,6 @@ static int dsa_port_setup_phy_of(struct dsa_port *dp, bool enable)
return PTR_ERR(phydev);
if (enable) {
- err = genphy_config_init(phydev);
- if (err < 0)
- goto err_put_dev;
-
err = genphy_resume(phydev);
if (err < 0)
goto err_put_dev;
@@ -589,7 +585,6 @@ static int dsa_port_fixed_link_register_of(struct dsa_port *dp)
mode = PHY_INTERFACE_MODE_NA;
phydev->interface = mode;
- genphy_config_init(phydev);
genphy_read_status(phydev);
if (ds->ops->adjust_link)