usbnet: fix status interrupt urb handling
authorFelix Fietkau <nbd@openwrt.org>
Tue, 12 Nov 2013 15:34:41 +0000 (16:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 07:32:37 +0000 (02:32 -0500)
Since commit 7b0c5f21f348a66de495868b8df0284e8dfd6bbf
"sierra_net: keep status interrupt URB active", sierra_net triggers
status interrupt polling before the net_device is opened (in order to
properly receive the sync message response).

To be able to receive further interrupts, the interrupt urb needs to be
re-submitted, so this patch removes the bogus check for netif_running().

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Tested-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c

index 90a429b7ebad8497d317639389c041d534366255..8494bb53ebdc9f33abee1d8e5a27f7d0dea3cc17 100644 (file)
@@ -204,9 +204,6 @@ static void intr_complete (struct urb *urb)
                break;
        }
 
-       if (!netif_running (dev->net))
-               return;
-
        status = usb_submit_urb (urb, GFP_ATOMIC);
        if (status != 0)
                netif_err(dev, timer, dev->net,