usbnet: fix status interrupt urb handling
Since commit 7b0c5f21f3
"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>
This commit is contained in:
Родитель
ec9f1d15db
Коммит
52f48d0d9a
|
@ -204,9 +204,6 @@ static void intr_complete (struct urb *urb)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!netif_running (dev->net))
|
|
||||||
return;
|
|
||||||
|
|
||||||
status = usb_submit_urb (urb, GFP_ATOMIC);
|
status = usb_submit_urb (urb, GFP_ATOMIC);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
netif_err(dev, timer, dev->net,
|
netif_err(dev, timer, dev->net,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче