kernel: bump to 4.4.35
[openwrt/staging/yousong.git] / target / linux / generic / patches-4.4 / 074-0002-net-bgmac-Start-transmit-queue-in-bgmac_open.patch
1 From c3897f2a69e54dd113fc9abd2daf872e5b495798 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Thu, 23 Jun 2016 14:25:32 -0700
4 Subject: [PATCH 2/3] net: bgmac: Start transmit queue in bgmac_open
5
6 The driver does not start the transmit queue in bgmac_open(). If the
7 queue was stopped prior to closing then re-opening the interface, we
8 would never be able to wake-up again.
9
10 Fixes: dd4544f05469 ("bgmac: driver for GBit MAC core on BCMA bus")
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14 drivers/net/ethernet/broadcom/bgmac.c | 3 +++
15 1 file changed, 3 insertions(+)
16
17 --- a/drivers/net/ethernet/broadcom/bgmac.c
18 +++ b/drivers/net/ethernet/broadcom/bgmac.c
19 @@ -1327,6 +1327,9 @@ static int bgmac_open(struct net_device
20 phy_start(net_dev->phydev);
21
22 netif_carrier_on(net_dev);
23 +
24 + netif_start_queue(net_dev);
25 +
26 return 0;
27 }
28