aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-08 06:47:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-08 06:47:31 -0400
commit463311960e9312245418af98dce8c0161fd6b827 (patch)
tree9529b6063b10f1b85408ef4757d1917dfdb8292d /drivers/net/usb
parent87d7bcee4f5973a593b0d50134364cfe5652ff33 (diff)
parent4ed9a3d455558406cad83d38764ee659de25851c (diff)
Merge tag 'usb-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB updates from Greg KH: "Here's the big USB patchset for 3.18-rc1. Also in here is the PHY tree, as it seems to fit well with the USB tree for various reasons... Anyway, lots of little changes in here, all over the place, full details in the changelog All have been in the linux-next tree for a while with no issues" * tag 'usb-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (244 commits) USB: host: st: fix typo 'CONFIG_USB_EHCI_HCD_ST' uas: Reduce number of function arguments for uas_alloc_foo functions xhci: Allow xHCI drivers to be built as separate modules xhci: Export symbols used by host-controller drivers xhci: Check for XHCI_COMP_MODE_QUIRK when disabling D3cold xhci: Introduce xhci_init_driver() usb: hcd: add generic PHY support usb: rename phy to usb_phy in HCD usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo USB: host: st: fix ehci/ohci driver selection usb: host: ehci-exynos: Remove unnecessary usb-phy support usb: core: return -ENOTSUPP for all targeted hosts USB: Remove .owner field for driver usb: core: log higher level message on malformed LANGID descriptor usb: Add LED triggers for USB activity usb: Rename usb-common.c usb: gadget: Refactor request completion usb: gadget: Introduce usb_gadget_giveback_request() usb: dwc2/gadget: move phy bus legth initialization phy: remove .owner field for drivers using module_platform_driver ...
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/usbnet.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 5173821a9575..20615bbd693b 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -69,8 +69,9 @@
69// reawaken network queue this soon after stopping; else watchdog barks 69// reawaken network queue this soon after stopping; else watchdog barks
70#define TX_TIMEOUT_JIFFIES (5*HZ) 70#define TX_TIMEOUT_JIFFIES (5*HZ)
71 71
72// throttle rx/tx briefly after some faults, so khubd might disconnect() 72/* throttle rx/tx briefly after some faults, so hub_wq might disconnect()
73// us (it polls at HZ/4 usually) before we report too many false errors. 73 * us (it polls at HZ/4 usually) before we report too many false errors.
74 */
74#define THROTTLE_JIFFIES (HZ/8) 75#define THROTTLE_JIFFIES (HZ/8)
75 76
76// between wakeups 77// between wakeups
@@ -595,9 +596,9 @@ static void rx_complete (struct urb *urb)
595 "rx shutdown, code %d\n", urb_status); 596 "rx shutdown, code %d\n", urb_status);
596 goto block; 597 goto block;
597 598
598 /* we get controller i/o faults during khubd disconnect() delays. 599 /* we get controller i/o faults during hub_wq disconnect() delays.
599 * throttle down resubmits, to avoid log floods; just temporarily, 600 * throttle down resubmits, to avoid log floods; just temporarily,
600 * so we still recover when the fault isn't a khubd delay. 601 * so we still recover when the fault isn't a hub_wq delay.
601 */ 602 */
602 case -EPROTO: 603 case -EPROTO:
603 case -ETIME: 604 case -ETIME:
@@ -1185,8 +1186,9 @@ static void tx_complete (struct urb *urb)
1185 case -ESHUTDOWN: // hardware gone 1186 case -ESHUTDOWN: // hardware gone
1186 break; 1187 break;
1187 1188
1188 // like rx, tx gets controller i/o faults during khubd delays 1189 /* like rx, tx gets controller i/o faults during hub_wq
1189 // and so it uses the same throttling mechanism. 1190 * delays and so it uses the same throttling mechanism.
1191 */
1190 case -EPROTO: 1192 case -EPROTO:
1191 case -ETIME: 1193 case -ETIME:
1192 case -EILSEQ: 1194 case -EILSEQ: