Skip to contentSkip to conversation

usbnet: consider device busy at each recieved packet

PATCH In review Oliver Neukum 2 participants 2 messages Mar 22, 2012 – Mar 23, 2012 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usbnet: consider device busy at each recieved packet

Quoted 1 line

From dd427382b6d3326acd6886041e8bbb432dfd4263 Mon Sep 17 00:00:00 2001

From: Oliver Neukum <[email protected]>
Date: Sat, 3 Mar 2012 18:45:07 +0100
Subject: [PATCH] usbnet: consider device busy at each recieved packet

usbnet should centrally handle busy reporting in the rx path so subdrivers need not worry. This hurts use cases which do rx only or predominantly.

---
 drivers/net/usb/usbnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/usb/usbnet.c +1 -0
index fae0fbd..a51ab46 100644
@@ -493,6 +493,7 @@ block:
 		if (netif_running (dev->net) &&
 		    !test_bit (EVENT_RX_HALT, &dev->flags)) {
 			rx_submit (dev, urb, GFP_ATOMIC);
+			usb_mark_last_busy(dev->udev);
 			return;
 		}
 		usb_free_urb (urb);
Signature · 6 lines
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

From: Oliver Neukum <[email protected]>
Date: Thu, 22 Mar 2012 21:35:07 +0100

Quoted 5 lines

usbnet should centrally handle busy reporting in the rx path so subdrivers need not worry. This hurts use cases which do rx only or predominantly.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html