074-0002-net-bgmac-Start-transmit-queue-in-bgmac_open.patch 924 B

12345678910111213141516171819202122232425262728
  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. The driver does not start the transmit queue in bgmac_open(). If the
  6. queue was stopped prior to closing then re-opening the interface, we
  7. would never be able to wake-up again.
  8. Fixes: dd4544f05469 ("bgmac: driver for GBit MAC core on BCMA bus")
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. Signed-off-by: David S. Miller <davem@davemloft.net>
  11. ---
  12. drivers/net/ethernet/broadcom/bgmac.c | 3 +++
  13. 1 file changed, 3 insertions(+)
  14. --- a/drivers/net/ethernet/broadcom/bgmac.c
  15. +++ b/drivers/net/ethernet/broadcom/bgmac.c
  16. @@ -1327,6 +1327,9 @@ static int bgmac_open(struct net_device
  17. phy_start(net_dev->phydev);
  18. netif_carrier_on(net_dev);
  19. +
  20. + netif_start_queue(net_dev);
  21. +
  22. return 0;
  23. }