generic: mtd: backport SPI_NOR_HAS_LOCK
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 074-0003-net-bgmac-Remove-superflous-netif_carrier_on.patch
1 From 3894396e64994f31c3ef5c7e6f63dded0593e567 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Thu, 23 Jun 2016 14:25:33 -0700
4 Subject: [PATCH 3/3] net: bgmac: Remove superflous netif_carrier_on()
5
6 bgmac_open() calls phy_start() to initialize the PHY state machine,
7 which will set the interface's carrier state accordingly, no need to
8 force that as this could be conflicting with the PHY state determined by
9 PHYLIB.
10
11 Fixes: dd4544f05469 ("bgmac: driver for GBit MAC core on BCMA bus")
12 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 ---
15 drivers/net/ethernet/broadcom/bgmac.c | 2 --
16 1 file changed, 2 deletions(-)
17
18 --- a/drivers/net/ethernet/broadcom/bgmac.c
19 +++ b/drivers/net/ethernet/broadcom/bgmac.c
20 @@ -1326,8 +1326,6 @@ static int bgmac_open(struct net_device
21
22 phy_start(net_dev->phydev);
23
24 - netif_carrier_on(net_dev);
25 -
26 netif_start_queue(net_dev);
27
28 return 0;