diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-05-18 21:06:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-14 22:18:45 +0200 |
commit | ffc5fe072354ba8c477920245ff2fd809043cdbd (patch) | |
tree | 6f1696d221f5457d77a5c458363c63a796a50f74 /drivers/net/usb | |
parent | 7be6d297245a4a92008d38e0700537d948fa525a (diff) | |
download | barebox-ffc5fe072354ba8c477920245ff2fd809043cdbd.tar.gz barebox-ffc5fe072354ba8c477920245ff2fd809043cdbd.tar.xz |
net: usb: use minimum timeout when polling for new packets
When no new packets have arrived we want to return to the caller
as soon as possible to give other network controllers the chance
to receive packets. With the current USB bulk message timeout of
one second other network controllers do not work properly whenever
the USB network controller is active.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index a51cfda328..33d900b706 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -125,7 +125,7 @@ static int usbnet_recv(struct eth_device *edev) len = dev->rx_urb_size; - ret = usb_bulk_msg(dev->udev, dev->in, rx_buf, len, &alen, 1000); + ret = usb_bulk_msg(dev->udev, dev->in, rx_buf, len, &alen, 1); if (ret) return ret; |