summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/mvneta.c
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@bootlin.com>2018-09-19 11:39:33 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-20 06:15:02 +0200
commit09b8a45eda546d2d93ee75c9899aba22c4dcb814 (patch)
tree39fd86f720388b7ab75008a19ca0a0e4f008a5c7 /drivers/net/ethernet/marvell/mvneta.c
parentnet: mvpp2: do not explicitly set the carrier state in open (diff)
downloadlinux-09b8a45eda546d2d93ee75c9899aba22c4dcb814.tar.xz
linux-09b8a45eda546d2d93ee75c9899aba22c4dcb814.zip
net: mvneta: do not explicitly set the carrier state in open
This patch removes the explicit call to netif_carrier_off() in mvneta_open() as this is already handled in phylink_start(). Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvneta.c')
-rw-r--r--drivers/net/ethernet/marvell/mvneta.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index fe3edb3c2bf4..89ed1df7b3e7 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -3791,9 +3791,6 @@ static int mvneta_open(struct net_device *dev)
goto err_free_online_hp;
}
- /* In default link is down */
- netif_carrier_off(pp->dev);
-
ret = mvneta_mdio_probe(pp);
if (ret < 0) {
netdev_err(dev, "cannot probe MDIO bus\n");