9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2016-05-18 21:06:08 +02:00
parent 7be6d29724
commit ffc5fe0723
1 changed files with 1 additions and 1 deletions

View File

@ -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;