aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2014-09-19 11:32:23 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 01:33:19 -0400
commit37ebb54915dc42944f6ae92fe53b9531c3903801 (patch)
tree5e81856de30454af836ff583ec96e3a34591c312 /drivers
parent59d48b3f1fdf307115af38b91c3ea4ddb57b73a2 (diff)
usb: hub: rename khubd to hub_wq in documentation and comments
USB hub has started to use a workqueue instead of kthread. Let's update the documentation and comments here and there. This patch mostly just replaces "khubd" with "hub_wq". There are only few exceptions where the whole sentence was updated. These more complicated changes can be found in the following files: Documentation/usb/hotplug.txt drivers/net/usb/usbnet.c drivers/usb/core/hcd.c drivers/usb/host/ohci-hcd.c drivers/usb/host/xhci.c Signed-off-by: Petr Mladek <pmladek@suse.cz> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/usb/usbnet.c14
-rw-r--r--drivers/usb/README2
-rw-r--r--drivers/usb/core/hcd.c10
-rw-r--r--drivers/usb/core/hub.c44
-rw-r--r--drivers/usb/host/ehci-fsl.c2
-rw-r--r--drivers/usb/host/ehci-hcd.c2
-rw-r--r--drivers/usb/host/ehci-hub.c8
-rw-r--r--drivers/usb/host/fhci-hcd.c6
-rw-r--r--drivers/usb/host/fotg210-hcd.c8
-rw-r--r--drivers/usb/host/fusbh200-hcd.c8
-rw-r--r--drivers/usb/host/isp1760-hcd.c6
-rw-r--r--drivers/usb/host/ohci-hcd.c6
-rw-r--r--drivers/usb/host/ohci-hub.c4
-rw-r--r--drivers/usb/host/ohci-omap.c2
-rw-r--r--drivers/usb/host/oxu210hp-hcd.c10
-rw-r--r--drivers/usb/host/sl811-hcd.c8
-rw-r--r--drivers/usb/host/xhci-hub.c2
-rw-r--r--drivers/usb/host/xhci.c4
-rw-r--r--drivers/usb/misc/usbtest.c2
-rw-r--r--drivers/usb/musb/am35x.c1
-rw-r--r--drivers/usb/musb/tusb6010.c2
-rw-r--r--drivers/usb/phy/phy-fsl-usb.c2
-rw-r--r--drivers/usb/phy/phy-isp1301-omap.c2
-rw-r--r--drivers/usb/wusbcore/devconnect.c6
-rw-r--r--drivers/usb/wusbcore/wa-hc.h2
25 files changed, 83 insertions, 80 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:
diff --git a/drivers/usb/README b/drivers/usb/README
index 284f46b3e1cc..2144e7dbfa41 100644
--- a/drivers/usb/README
+++ b/drivers/usb/README
@@ -24,7 +24,7 @@ Here is a list of what each subdirectory here is, and what is contained in
24them. 24them.
25 25
26core/ - This is for the core USB host code, including the 26core/ - This is for the core USB host code, including the
27 usbfs files and the hub class driver ("khubd"). 27 usbfs files and the hub class driver ("hub_wq").
28 28
29host/ - This is for USB host controller drivers. This 29host/ - This is for USB host controller drivers. This
30 includes UHCI, OHCI, EHCI, and others that might 30 includes UHCI, OHCI, EHCI, and others that might
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 761ccf02d7a0..d3fe161bec05 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -2301,7 +2301,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_resume_root_hub);
2301 * Context: in_interrupt() 2301 * Context: in_interrupt()
2302 * 2302 *
2303 * Starts enumeration, with an immediate reset followed later by 2303 * Starts enumeration, with an immediate reset followed later by
2304 * khubd identifying and possibly configuring the device. 2304 * hub_wq identifying and possibly configuring the device.
2305 * This is needed by OTG controller drivers, where it helps meet 2305 * This is needed by OTG controller drivers, where it helps meet
2306 * HNP protocol timing requirements for starting a port reset. 2306 * HNP protocol timing requirements for starting a port reset.
2307 * 2307 *
@@ -2320,7 +2320,7 @@ int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num)
2320 if (port_num && hcd->driver->start_port_reset) 2320 if (port_num && hcd->driver->start_port_reset)
2321 status = hcd->driver->start_port_reset(hcd, port_num); 2321 status = hcd->driver->start_port_reset(hcd, port_num);
2322 2322
2323 /* run khubd shortly after (first) root port reset finishes; 2323 /* allocate hub_wq shortly after (first) root port reset finishes;
2324 * it may issue others, until at least 50 msecs have passed. 2324 * it may issue others, until at least 50 msecs have passed.
2325 */ 2325 */
2326 if (status == 0) 2326 if (status == 0)
@@ -2383,7 +2383,7 @@ void usb_hc_died (struct usb_hcd *hcd)
2383 if (hcd->rh_registered) { 2383 if (hcd->rh_registered) {
2384 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); 2384 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
2385 2385
2386 /* make khubd clean up old urbs and devices */ 2386 /* make hub_wq clean up old urbs and devices */
2387 usb_set_device_state (hcd->self.root_hub, 2387 usb_set_device_state (hcd->self.root_hub,
2388 USB_STATE_NOTATTACHED); 2388 USB_STATE_NOTATTACHED);
2389 usb_kick_hub_wq(hcd->self.root_hub); 2389 usb_kick_hub_wq(hcd->self.root_hub);
@@ -2393,7 +2393,7 @@ void usb_hc_died (struct usb_hcd *hcd)
2393 if (hcd->rh_registered) { 2393 if (hcd->rh_registered) {
2394 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); 2394 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
2395 2395
2396 /* make khubd clean up old urbs and devices */ 2396 /* make hub_wq clean up old urbs and devices */
2397 usb_set_device_state(hcd->self.root_hub, 2397 usb_set_device_state(hcd->self.root_hub,
2398 USB_STATE_NOTATTACHED); 2398 USB_STATE_NOTATTACHED);
2399 usb_kick_hub_wq(hcd->self.root_hub); 2399 usb_kick_hub_wq(hcd->self.root_hub);
@@ -2655,7 +2655,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
2655 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); 2655 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
2656 2656
2657 /* HC is in reset state, but accessible. Now do the one-time init, 2657 /* HC is in reset state, but accessible. Now do the one-time init,
2658 * bottom up so that hcds can customize the root hubs before khubd 2658 * bottom up so that hcds can customize the root hubs before hub_wq
2659 * starts talking to them. (Note, bus id is assigned early too.) 2659 * starts talking to them. (Note, bus id is assigned early too.)
2660 */ 2660 */
2661 if ((retval = hcd_buffer_create(hcd)) != 0) { 2661 if ((retval = hcd_buffer_create(hcd)) != 0) {
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 9b01ab2bbe7d..12a4c67667b1 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -652,7 +652,7 @@ static void hub_irq(struct urb *urb)
652 hub->error = status; 652 hub->error = status;
653 /* FALL THROUGH */ 653 /* FALL THROUGH */
654 654
655 /* let khubd handle things */ 655 /* let hub_wq handle things */
656 case 0: /* we got data: port status changed */ 656 case 0: /* we got data: port status changed */
657 bits = 0; 657 bits = 0;
658 for (i = 0; i < urb->actual_length; ++i) 658 for (i = 0; i < urb->actual_length; ++i)
@@ -664,7 +664,7 @@ static void hub_irq(struct urb *urb)
664 664
665 hub->nerrors = 0; 665 hub->nerrors = 0;
666 666
667 /* Something happened, let khubd figure it out */ 667 /* Something happened, let hub_wq figure it out */
668 kick_hub_wq(hub); 668 kick_hub_wq(hub);
669 669
670resubmit: 670resubmit:
@@ -695,7 +695,7 @@ hub_clear_tt_buffer (struct usb_device *hdev, u16 devinfo, u16 tt)
695} 695}
696 696
697/* 697/*
698 * enumeration blocks khubd for a long time. we use keventd instead, since 698 * enumeration blocks hub_wq for a long time. we use keventd instead, since
699 * long blocking there is the exception, not the rule. accordingly, HCDs 699 * long blocking there is the exception, not the rule. accordingly, HCDs
700 * talking to TTs must queue control transfers (not just bulk and iso), so 700 * talking to TTs must queue control transfers (not just bulk and iso), so
701 * both can talk to the same hub concurrently. 701 * both can talk to the same hub concurrently.
@@ -961,7 +961,7 @@ static int hub_port_disable(struct usb_hub *hub, int port1, int set_state)
961 961
962/* 962/*
963 * Disable a port and mark a logical connect-change event, so that some 963 * Disable a port and mark a logical connect-change event, so that some
964 * time later khubd will disconnect() any existing usb_device on the port 964 * time later hub_wq will disconnect() any existing usb_device on the port
965 * and will re-enumerate if there actually is a device attached. 965 * and will re-enumerate if there actually is a device attached.
966 */ 966 */
967static void hub_port_logical_disconnect(struct usb_hub *hub, int port1) 967static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
@@ -974,7 +974,7 @@ static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
974 * - SRP saves power that way 974 * - SRP saves power that way
975 * - ... new call, TBD ... 975 * - ... new call, TBD ...
976 * That's easy if this hub can switch power per-port, and 976 * That's easy if this hub can switch power per-port, and
977 * khubd reactivates the port later (timer, SRP, etc). 977 * hub_wq reactivates the port later (timer, SRP, etc).
978 * Powerdown must be optional, because of reset/DFU. 978 * Powerdown must be optional, because of reset/DFU.
979 */ 979 */
980 980
@@ -987,7 +987,7 @@ static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
987 * @udev: device to be disabled and removed 987 * @udev: device to be disabled and removed
988 * Context: @udev locked, must be able to sleep. 988 * Context: @udev locked, must be able to sleep.
989 * 989 *
990 * After @udev's port has been disabled, khubd is notified and it will 990 * After @udev's port has been disabled, hub_wq is notified and it will
991 * see that the device has been disconnected. When the device is 991 * see that the device has been disconnected. When the device is
992 * physically unplugged and something is plugged in, the events will 992 * physically unplugged and something is plugged in, the events will
993 * be received and processed normally. 993 * be received and processed normally.
@@ -1107,7 +1107,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
1107 init2: 1107 init2:
1108 1108
1109 /* 1109 /*
1110 * Check each port and set hub->change_bits to let khubd know 1110 * Check each port and set hub->change_bits to let hub_wq know
1111 * which ports need attention. 1111 * which ports need attention.
1112 */ 1112 */
1113 for (port1 = 1; port1 <= hdev->maxchild; ++port1) { 1113 for (port1 = 1; port1 <= hdev->maxchild; ++port1) {
@@ -1174,7 +1174,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
1174 clear_bit(port1, hub->removed_bits); 1174 clear_bit(port1, hub->removed_bits);
1175 1175
1176 if (!udev || udev->state == USB_STATE_NOTATTACHED) { 1176 if (!udev || udev->state == USB_STATE_NOTATTACHED) {
1177 /* Tell khubd to disconnect the device or 1177 /* Tell hub_wq to disconnect the device or
1178 * check for a new connection 1178 * check for a new connection
1179 */ 1179 */
1180 if (udev || (portstatus & USB_PORT_STAT_CONNECTION) || 1180 if (udev || (portstatus & USB_PORT_STAT_CONNECTION) ||
@@ -1187,7 +1187,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
1187 USB_SS_PORT_LS_U0; 1187 USB_SS_PORT_LS_U0;
1188 /* The power session apparently survived the resume. 1188 /* The power session apparently survived the resume.
1189 * If there was an overcurrent or suspend change 1189 * If there was an overcurrent or suspend change
1190 * (i.e., remote wakeup request), have khubd 1190 * (i.e., remote wakeup request), have hub_wq
1191 * take care of it. Look at the port link state 1191 * take care of it. Look at the port link state
1192 * for USB 3.0 hubs, since they don't have a suspend 1192 * for USB 3.0 hubs, since they don't have a suspend
1193 * change bit, and they don't set the port link change 1193 * change bit, and they don't set the port link change
@@ -1208,7 +1208,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
1208 set_bit(port1, hub->change_bits); 1208 set_bit(port1, hub->change_bits);
1209 1209
1210 } else { 1210 } else {
1211 /* The power session is gone; tell khubd */ 1211 /* The power session is gone; tell hub_wq */
1212 usb_set_device_state(udev, USB_STATE_NOTATTACHED); 1212 usb_set_device_state(udev, USB_STATE_NOTATTACHED);
1213 set_bit(port1, hub->change_bits); 1213 set_bit(port1, hub->change_bits);
1214 } 1214 }
@@ -1216,10 +1216,10 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
1216 1216
1217 /* If no port-status-change flags were set, we don't need any 1217 /* If no port-status-change flags were set, we don't need any
1218 * debouncing. If flags were set we can try to debounce the 1218 * debouncing. If flags were set we can try to debounce the
1219 * ports all at once right now, instead of letting khubd do them 1219 * ports all at once right now, instead of letting hub_wq do them
1220 * one at a time later on. 1220 * one at a time later on.
1221 * 1221 *
1222 * If any port-status changes do occur during this delay, khubd 1222 * If any port-status changes do occur during this delay, hub_wq
1223 * will see them later and handle them normally. 1223 * will see them later and handle them normally.
1224 */ 1224 */
1225 if (need_debounce_delay) { 1225 if (need_debounce_delay) {
@@ -1280,7 +1280,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
1280 1280
1281 cancel_delayed_work_sync(&hub->init_work); 1281 cancel_delayed_work_sync(&hub->init_work);
1282 1282
1283 /* khubd and related activity won't re-trigger */ 1283 /* hub_wq and related activity won't re-trigger */
1284 hub->quiescing = 1; 1284 hub->quiescing = 1;
1285 1285
1286 if (type != HUB_SUSPEND) { 1286 if (type != HUB_SUSPEND) {
@@ -1291,7 +1291,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
1291 } 1291 }
1292 } 1292 }
1293 1293
1294 /* Stop khubd and related activity */ 1294 /* Stop hub_wq and related activity */
1295 usb_kill_urb(hub->urb); 1295 usb_kill_urb(hub->urb);
1296 if (hub->has_indicators) 1296 if (hub->has_indicators)
1297 cancel_delayed_work_sync(&hub->leds); 1297 cancel_delayed_work_sync(&hub->leds);
@@ -1613,7 +1613,7 @@ static int hub_configure(struct usb_hub *hub,
1613 if (ret < 0) 1613 if (ret < 0)
1614 goto fail; 1614 goto fail;
1615 1615
1616 /* Update the HCD's internal representation of this hub before khubd 1616 /* Update the HCD's internal representation of this hub before hub_wq
1617 * starts getting port status changes for devices under the hub. 1617 * starts getting port status changes for devices under the hub.
1618 */ 1618 */
1619 if (hcd->driver->update_hub_device) { 1619 if (hcd->driver->update_hub_device) {
@@ -2045,7 +2045,7 @@ static void choose_devnum(struct usb_device *udev)
2045 int devnum; 2045 int devnum;
2046 struct usb_bus *bus = udev->bus; 2046 struct usb_bus *bus = udev->bus;
2047 2047
2048 /* If khubd ever becomes multithreaded, this will need a lock */ 2048 /* If hub_wq ever becomes multithreaded, this will need a lock */
2049 if (udev->wusb) { 2049 if (udev->wusb) {
2050 devnum = udev->portnum + 1; 2050 devnum = udev->portnum + 1;
2051 BUG_ON(test_bit(devnum, bus->devmap.devicemap)); 2051 BUG_ON(test_bit(devnum, bus->devmap.devicemap));
@@ -3074,7 +3074,7 @@ static unsigned wakeup_enabled_descendants(struct usb_device *udev)
3074 * Once VBUS drop breaks the circuit, the port it's using has to go through 3074 * Once VBUS drop breaks the circuit, the port it's using has to go through
3075 * normal re-enumeration procedures, starting with enabling VBUS power. 3075 * normal re-enumeration procedures, starting with enabling VBUS power.
3076 * Other than re-initializing the hub (plug/unplug, except for root hubs), 3076 * Other than re-initializing the hub (plug/unplug, except for root hubs),
3077 * Linux (2.6) currently has NO mechanisms to initiate that: no khubd 3077 * Linux (2.6) currently has NO mechanisms to initiate that: no hub_wq
3078 * timer, no SRP, no requests through sysfs. 3078 * timer, no SRP, no requests through sysfs.
3079 * 3079 *
3080 * If Runtime PM isn't enabled or used, non-SuperSpeed devices may not get 3080 * If Runtime PM isn't enabled or used, non-SuperSpeed devices may not get
@@ -3216,7 +3216,7 @@ static int finish_port_resume(struct usb_device *udev)
3216 /* usb ch9 identifies four variants of SUSPENDED, based on what 3216 /* usb ch9 identifies four variants of SUSPENDED, based on what
3217 * state the device resumes to. Linux currently won't see the 3217 * state the device resumes to. Linux currently won't see the
3218 * first two on the host side; they'd be inside hub_port_init() 3218 * first two on the host side; they'd be inside hub_port_init()
3219 * during many timeouts, but khubd can't suspend until later. 3219 * during many timeouts, but hub_wq can't suspend until later.
3220 */ 3220 */
3221 usb_set_device_state(udev, udev->actconfig 3221 usb_set_device_state(udev, udev->actconfig
3222 ? USB_STATE_CONFIGURED 3222 ? USB_STATE_CONFIGURED
@@ -3581,7 +3581,7 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
3581 3581
3582 dev_dbg(&intf->dev, "%s\n", __func__); 3582 dev_dbg(&intf->dev, "%s\n", __func__);
3583 3583
3584 /* stop khubd and related activity */ 3584 /* stop hub_wq and related activity */
3585 hub_quiesce(hub, HUB_SUSPEND); 3585 hub_quiesce(hub, HUB_SUSPEND);
3586 return 0; 3586 return 0;
3587} 3587}
@@ -4977,10 +4977,10 @@ static void port_event(struct usb_hub *hub, int port1)
4977 * On disconnect USB3 protocol ports transit from U0 to 4977 * On disconnect USB3 protocol ports transit from U0 to
4978 * SS.Inactive to Rx.Detect. If this happens a warm- 4978 * SS.Inactive to Rx.Detect. If this happens a warm-
4979 * reset is not needed, but a (re)connect may happen 4979 * reset is not needed, but a (re)connect may happen
4980 * before khubd runs and sees the disconnect, and the 4980 * before hub_wq runs and sees the disconnect, and the
4981 * device may be an unknown state. 4981 * device may be an unknown state.
4982 * 4982 *
4983 * If the port went through SS.Inactive without khubd 4983 * If the port went through SS.Inactive without hub_wq
4984 * seeing it the C_LINK_STATE change flag will be set, 4984 * seeing it the C_LINK_STATE change flag will be set,
4985 * and we reset the dev to put it in a known state. 4985 * and we reset the dev to put it in a known state.
4986 */ 4986 */
@@ -5290,7 +5290,7 @@ static int descriptors_changed(struct usb_device *udev,
5290 * former operating configuration. If the reset fails, or the device's 5290 * former operating configuration. If the reset fails, or the device's
5291 * descriptors change from their values before the reset, or the original 5291 * descriptors change from their values before the reset, or the original
5292 * configuration and altsettings cannot be restored, a flag will be set 5292 * configuration and altsettings cannot be restored, a flag will be set
5293 * telling khubd to pretend the device has been disconnected and then 5293 * telling hub_wq to pretend the device has been disconnected and then
5294 * re-connected. All drivers will be unbound, and the device will be 5294 * re-connected. All drivers will be unbound, and the device will be
5295 * re-enumerated and probed all over again. 5295 * re-enumerated and probed all over again.
5296 * 5296 *
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index cf2734b532a7..3d84b6a41dae 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -627,7 +627,7 @@ static int ehci_start_port_reset(struct usb_hcd *hcd, unsigned port)
627 if (!(status & PORT_CONNECT)) 627 if (!(status & PORT_CONNECT))
628 return -ENODEV; 628 return -ENODEV;
629 629
630 /* khubd will finish the reset later */ 630 /* hub_wq will finish the reset later */
631 if (ehci_is_TDI(ehci)) { 631 if (ehci_is_TDI(ehci)) {
632 writel(PORT_RESET | 632 writel(PORT_RESET |
633 (status & ~(PORT_CSC | PORT_PEC | PORT_OCC)), 633 (status & ~(PORT_CSC | PORT_PEC | PORT_OCC)),
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 488a30836c36..15feaf924b71 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -788,7 +788,7 @@ static irqreturn_t ehci_irq (struct usb_hcd *hcd)
788 continue; 788 continue;
789 789
790 /* start 20 msec resume signaling from this port, 790 /* start 20 msec resume signaling from this port,
791 * and make khubd collect PORT_STAT_C_SUSPEND to 791 * and make hub_wq collect PORT_STAT_C_SUSPEND to
792 * stop that signaling. Use 5 ms extra for safety, 792 * stop that signaling. Use 5 ms extra for safety,
793 * like usb_port_resume() does. 793 * like usb_port_resume() does.
794 */ 794 */
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index 6130b7574908..7ccb3ccf8e86 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -656,7 +656,7 @@ ehci_hub_status_data (struct usb_hcd *hcd, char *buf)
656 656
657 /* 657 /*
658 * Return status information even for ports with OWNER set. 658 * Return status information even for ports with OWNER set.
659 * Otherwise khubd wouldn't see the disconnect event when a 659 * Otherwise hub_wq wouldn't see the disconnect event when a
660 * high-speed device is switched over to the companion 660 * high-speed device is switched over to the companion
661 * controller by the user. 661 * controller by the user.
662 */ 662 */
@@ -902,7 +902,7 @@ int ehci_hub_control(
902 902
903 /* 903 /*
904 * Even if OWNER is set, so the port is owned by the 904 * Even if OWNER is set, so the port is owned by the
905 * companion controller, khubd needs to be able to clear 905 * companion controller, hub_wq needs to be able to clear
906 * the port-change status bits (especially 906 * the port-change status bits (especially
907 * USB_PORT_STAT_C_CONNECTION). 907 * USB_PORT_STAT_C_CONNECTION).
908 */ 908 */
@@ -1000,7 +1000,7 @@ int ehci_hub_control(
1000 * However, not all EHCI implementations do this 1000 * However, not all EHCI implementations do this
1001 * automatically, even if they _do_ support per-port 1001 * automatically, even if they _do_ support per-port
1002 * power switching; they're allowed to just limit the 1002 * power switching; they're allowed to just limit the
1003 * current. khubd will turn the power back on. 1003 * current. hub_wq will turn the power back on.
1004 */ 1004 */
1005 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) 1005 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle))
1006 && HCS_PPC(ehci->hcs_params)) { 1006 && HCS_PPC(ehci->hcs_params)) {
@@ -1085,7 +1085,7 @@ int ehci_hub_control(
1085 } 1085 }
1086 1086
1087 /* 1087 /*
1088 * Even if OWNER is set, there's no harm letting khubd 1088 * Even if OWNER is set, there's no harm letting hub_wq
1089 * see the wPortStatus values (they should all be 0 except 1089 * see the wPortStatus values (they should all be 0 except
1090 * for PORT_POWER anyway). 1090 * for PORT_POWER anyway).
1091 */ 1091 */
diff --git a/drivers/usb/host/fhci-hcd.c b/drivers/usb/host/fhci-hcd.c
index 1cf68eaf2ed8..a1a1ef521436 100644
--- a/drivers/usb/host/fhci-hcd.c
+++ b/drivers/usb/host/fhci-hcd.c
@@ -360,12 +360,12 @@ static int fhci_start(struct usb_hcd *hcd)
360 hcd->state = HC_STATE_RUNNING; 360 hcd->state = HC_STATE_RUNNING;
361 361
362 /* 362 /*
363 * From here on, khubd concurrently accesses the root 363 * From here on, hub_wq concurrently accesses the root
364 * hub; drivers will be talking to enumerated devices. 364 * hub; drivers will be talking to enumerated devices.
365 * (On restart paths, khubd already knows about the root 365 * (On restart paths, hub_wq already knows about the root
366 * hub and could find work as soon as we wrote FLAG_CF.) 366 * hub and could find work as soon as we wrote FLAG_CF.)
367 * 367 *
368 * Before this point the HC was idle/ready. After, khubd 368 * Before this point the HC was idle/ready. After, hub_wq
369 * and device drivers may start it running. 369 * and device drivers may start it running.
370 */ 370 */
371 fhci_usb_enable(fhci); 371 fhci_usb_enable(fhci);
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index adcd2050dced..3de1278677d0 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -1483,7 +1483,7 @@ fotg210_hub_status_data(struct usb_hcd *hcd, char *buf)
1483 1483
1484 /* 1484 /*
1485 * Return status information even for ports with OWNER set. 1485 * Return status information even for ports with OWNER set.
1486 * Otherwise khubd wouldn't see the disconnect event when a 1486 * Otherwise hub_wq wouldn't see the disconnect event when a
1487 * high-speed device is switched over to the companion 1487 * high-speed device is switched over to the companion
1488 * controller by the user. 1488 * controller by the user.
1489 */ 1489 */
@@ -1572,7 +1572,7 @@ static int fotg210_hub_control(
1572 1572
1573 /* 1573 /*
1574 * Even if OWNER is set, so the port is owned by the 1574 * Even if OWNER is set, so the port is owned by the
1575 * companion controller, khubd needs to be able to clear 1575 * companion controller, hub_wq needs to be able to clear
1576 * the port-change status bits (especially 1576 * the port-change status bits (especially
1577 * USB_PORT_STAT_C_CONNECTION). 1577 * USB_PORT_STAT_C_CONNECTION).
1578 */ 1578 */
@@ -1723,7 +1723,7 @@ static int fotg210_hub_control(
1723 } 1723 }
1724 1724
1725 /* 1725 /*
1726 * Even if OWNER is set, there's no harm letting khubd 1726 * Even if OWNER is set, there's no harm letting hub_wq
1727 * see the wPortStatus values (they should all be 0 except 1727 * see the wPortStatus values (they should all be 0 except
1728 * for PORT_POWER anyway). 1728 * for PORT_POWER anyway).
1729 */ 1729 */
@@ -5445,7 +5445,7 @@ static irqreturn_t fotg210_irq(struct usb_hcd *hcd)
5445 fotg210->reset_done[0] == 0) { 5445 fotg210->reset_done[0] == 0) {
5446 5446
5447 /* start 20 msec resume signaling from this port, 5447 /* start 20 msec resume signaling from this port,
5448 * and make khubd collect PORT_STAT_C_SUSPEND to 5448 * and make hub_wq collect PORT_STAT_C_SUSPEND to
5449 * stop that signaling. Use 5 ms extra for safety, 5449 * stop that signaling. Use 5 ms extra for safety,
5450 * like usb_port_resume() does. 5450 * like usb_port_resume() does.
5451 */ 5451 */
diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c
index ba9499060f63..abe42f31559f 100644
--- a/drivers/usb/host/fusbh200-hcd.c
+++ b/drivers/usb/host/fusbh200-hcd.c
@@ -1441,7 +1441,7 @@ fusbh200_hub_status_data (struct usb_hcd *hcd, char *buf)
1441 1441
1442 /* 1442 /*
1443 * Return status information even for ports with OWNER set. 1443 * Return status information even for ports with OWNER set.
1444 * Otherwise khubd wouldn't see the disconnect event when a 1444 * Otherwise hub_wq wouldn't see the disconnect event when a
1445 * high-speed device is switched over to the companion 1445 * high-speed device is switched over to the companion
1446 * controller by the user. 1446 * controller by the user.
1447 */ 1447 */
@@ -1530,7 +1530,7 @@ static int fusbh200_hub_control (
1530 1530
1531 /* 1531 /*
1532 * Even if OWNER is set, so the port is owned by the 1532 * Even if OWNER is set, so the port is owned by the
1533 * companion controller, khubd needs to be able to clear 1533 * companion controller, hub_wq needs to be able to clear
1534 * the port-change status bits (especially 1534 * the port-change status bits (especially
1535 * USB_PORT_STAT_C_CONNECTION). 1535 * USB_PORT_STAT_C_CONNECTION).
1536 */ 1536 */
@@ -1678,7 +1678,7 @@ static int fusbh200_hub_control (
1678 } 1678 }
1679 1679
1680 /* 1680 /*
1681 * Even if OWNER is set, there's no harm letting khubd 1681 * Even if OWNER is set, there's no harm letting hub_wq
1682 * see the wPortStatus values (they should all be 0 except 1682 * see the wPortStatus values (they should all be 0 except
1683 * for PORT_POWER anyway). 1683 * for PORT_POWER anyway).
1684 */ 1684 */
@@ -5355,7 +5355,7 @@ static irqreturn_t fusbh200_irq (struct usb_hcd *hcd)
5355 fusbh200->reset_done[0] == 0) { 5355 fusbh200->reset_done[0] == 0) {
5356 5356
5357 /* start 20 msec resume signaling from this port, 5357 /* start 20 msec resume signaling from this port,
5358 * and make khubd collect PORT_STAT_C_SUSPEND to 5358 * and make hub_wq collect PORT_STAT_C_SUSPEND to
5359 * stop that signaling. Use 5 ms extra for safety, 5359 * stop that signaling. Use 5 ms extra for safety,
5360 * like usb_port_resume() does. 5360 * like usb_port_resume() does.
5361 */ 5361 */
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c
index 51a0ae9cdd1d..e752c3098f38 100644
--- a/drivers/usb/host/isp1760-hcd.c
+++ b/drivers/usb/host/isp1760-hcd.c
@@ -1760,7 +1760,7 @@ static int isp1760_hub_status_data(struct usb_hcd *hcd, char *buf)
1760 1760
1761 /* 1761 /*
1762 * Return status information even for ports with OWNER set. 1762 * Return status information even for ports with OWNER set.
1763 * Otherwise khubd wouldn't see the disconnect event when a 1763 * Otherwise hub_wq wouldn't see the disconnect event when a
1764 * high-speed device is switched over to the companion 1764 * high-speed device is switched over to the companion
1765 * controller by the user. 1765 * controller by the user.
1766 */ 1766 */
@@ -1871,7 +1871,7 @@ static int isp1760_hub_control(struct usb_hcd *hcd, u16 typeReq,
1871 1871
1872 /* 1872 /*
1873 * Even if OWNER is set, so the port is owned by the 1873 * Even if OWNER is set, so the port is owned by the
1874 * companion controller, khubd needs to be able to clear 1874 * companion controller, hub_wq needs to be able to clear
1875 * the port-change status bits (especially 1875 * the port-change status bits (especially
1876 * USB_PORT_STAT_C_CONNECTION). 1876 * USB_PORT_STAT_C_CONNECTION).
1877 */ 1877 */
@@ -2000,7 +2000,7 @@ static int isp1760_hub_control(struct usb_hcd *hcd, u16 typeReq,
2000 reg_read32(hcd->regs, HC_PORTSC1)); 2000 reg_read32(hcd->regs, HC_PORTSC1));
2001 } 2001 }
2002 /* 2002 /*
2003 * Even if OWNER is set, there's no harm letting khubd 2003 * Even if OWNER is set, there's no harm letting hub_wq
2004 * see the wPortStatus values (they should all be 0 except 2004 * see the wPortStatus values (they should all be 0 except
2005 * for PORT_POWER anyway). 2005 * for PORT_POWER anyway).
2006 */ 2006 */
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 46987735a2e3..d664edabf14e 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -632,7 +632,7 @@ retry:
632 return -EOVERFLOW; 632 return -EOVERFLOW;
633 } 633 }
634 634
635 /* use rhsc irqs after khubd is fully initialized */ 635 /* use rhsc irqs after hub_wq is allocated */
636 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); 636 set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
637 hcd->uses_new_polling = 1; 637 hcd->uses_new_polling = 1;
638 638
@@ -909,8 +909,8 @@ static irqreturn_t ohci_irq (struct usb_hcd *hcd)
909 * choices for RHSC. Many followed the spec; RHSC triggers 909 * choices for RHSC. Many followed the spec; RHSC triggers
910 * on an edge, like setting and maybe clearing a port status 910 * on an edge, like setting and maybe clearing a port status
911 * change bit. With others it's level-triggered, active 911 * change bit. With others it's level-triggered, active
912 * until khubd clears all the port status change bits. We'll 912 * until hub_wq clears all the port status change bits. We'll
913 * always disable it here and rely on polling until khubd 913 * always disable it here and rely on polling until hub_wq
914 * re-enables it. 914 * re-enables it.
915 */ 915 */
916 ohci_writel(ohci, OHCI_INTR_RHSC, &regs->intrdisable); 916 ohci_writel(ohci, OHCI_INTR_RHSC, &regs->intrdisable);
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
index 17d32b0ea565..0aa17c937115 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -585,7 +585,7 @@ static int ohci_start_port_reset (struct usb_hcd *hcd, unsigned port)
585 if (!(status & RH_PS_CCS)) 585 if (!(status & RH_PS_CCS))
586 return -ENODEV; 586 return -ENODEV;
587 587
588 /* khubd will finish the reset later */ 588 /* hub_wq will finish the reset later */
589 ohci_writel(ohci, RH_PS_PRS, &ohci->regs->roothub.portstatus [port]); 589 ohci_writel(ohci, RH_PS_PRS, &ohci->regs->roothub.portstatus [port]);
590 return 0; 590 return 0;
591} 591}
@@ -610,7 +610,7 @@ static int ohci_start_port_reset (struct usb_hcd *hcd, unsigned port)
610/* wrap-aware logic morphed from <linux/jiffies.h> */ 610/* wrap-aware logic morphed from <linux/jiffies.h> */
611#define tick_before(t1,t2) ((s16)(((s16)(t1))-((s16)(t2))) < 0) 611#define tick_before(t1,t2) ((s16)(((s16)(t1))-((s16)(t2))) < 0)
612 612
613/* called from some task, normally khubd */ 613/* called from some task, normally hub_wq */
614static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port) 614static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port)
615{ 615{
616 __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port]; 616 __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port];
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
index c923cafcaca7..de9428362503 100644
--- a/drivers/usb/host/ohci-omap.c
+++ b/drivers/usb/host/ohci-omap.c
@@ -283,7 +283,7 @@ static int ohci_omap_reset(struct usb_hcd *hcd)
283 ohci_to_hcd(ohci)->power_budget = 0; 283 ohci_to_hcd(ohci)->power_budget = 0;
284 } 284 }
285 285
286 /* FIXME khubd hub requests should manage power switching */ 286 /* FIXME hub_wq hub requests should manage power switching */
287 omap_ohci_transceiver_power(1); 287 omap_ohci_transceiver_power(1);
288 288
289 /* board init will have already handled HMC and mux setup. 289 /* board init will have already handled HMC and mux setup.
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c
index da5fb0e3c363..4fe79a2d71a9 100644
--- a/drivers/usb/host/oxu210hp-hcd.c
+++ b/drivers/usb/host/oxu210hp-hcd.c
@@ -2046,7 +2046,7 @@ static void intr_deschedule(struct oxu_hcd *oxu, struct ehci_qh *qh)
2046 2046
2047 /* simple/paranoid: always delay, expecting the HC needs to read 2047 /* simple/paranoid: always delay, expecting the HC needs to read
2048 * qh->hw_next or finish a writeback after SPLIT/CSPLIT ... and 2048 * qh->hw_next or finish a writeback after SPLIT/CSPLIT ... and
2049 * expect khubd to clean up after any CSPLITs we won't issue. 2049 * expect hub_wq to clean up after any CSPLITs we won't issue.
2050 * active high speed queues may need bigger delays... 2050 * active high speed queues may need bigger delays...
2051 */ 2051 */
2052 if (list_empty(&qh->qtd_list) 2052 if (list_empty(&qh->qtd_list)
@@ -2501,7 +2501,7 @@ static irqreturn_t oxu210_hcd_irq(struct usb_hcd *hcd)
2501 continue; 2501 continue;
2502 2502
2503 /* start 20 msec resume signaling from this port, 2503 /* start 20 msec resume signaling from this port,
2504 * and make khubd collect PORT_STAT_C_SUSPEND to 2504 * and make hub_wq collect PORT_STAT_C_SUSPEND to
2505 * stop that signaling. 2505 * stop that signaling.
2506 */ 2506 */
2507 oxu->reset_done[i] = jiffies + msecs_to_jiffies(20); 2507 oxu->reset_done[i] = jiffies + msecs_to_jiffies(20);
@@ -3119,7 +3119,7 @@ static int oxu_hub_status_data(struct usb_hcd *hcd, char *buf)
3119 3119
3120 /* 3120 /*
3121 * Return status information even for ports with OWNER set. 3121 * Return status information even for ports with OWNER set.
3122 * Otherwise khubd wouldn't see the disconnect event when a 3122 * Otherwise hub_wq wouldn't see the disconnect event when a
3123 * high-speed device is switched over to the companion 3123 * high-speed device is switched over to the companion
3124 * controller by the user. 3124 * controller by the user.
3125 */ 3125 */
@@ -3194,7 +3194,7 @@ static int oxu_hub_control(struct usb_hcd *hcd, u16 typeReq,
3194 3194
3195 /* 3195 /*
3196 * Even if OWNER is set, so the port is owned by the 3196 * Even if OWNER is set, so the port is owned by the
3197 * companion controller, khubd needs to be able to clear 3197 * companion controller, hub_wq needs to be able to clear
3198 * the port-change status bits (especially 3198 * the port-change status bits (especially
3199 * USB_PORT_STAT_C_CONNECTION). 3199 * USB_PORT_STAT_C_CONNECTION).
3200 */ 3200 */
@@ -3336,7 +3336,7 @@ static int oxu_hub_control(struct usb_hcd *hcd, u16 typeReq,
3336 } 3336 }
3337 3337
3338 /* 3338 /*
3339 * Even if OWNER is set, there's no harm letting khubd 3339 * Even if OWNER is set, there's no harm letting hub_wq
3340 * see the wPortStatus values (they should all be 0 except 3340 * see the wPortStatus values (they should all be 0 except
3341 * for PORT_POWER anyway). 3341 * for PORT_POWER anyway).
3342 */ 3342 */
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index a517151867af..ad0c348e68e9 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -674,7 +674,7 @@ retry:
674 sl811->next_periodic = sl811->periodic[index]; 674 sl811->next_periodic = sl811->periodic[index];
675 } 675 }
676 676
677 /* khubd manages debouncing and wakeup */ 677 /* hub_wq manages debouncing and wakeup */
678 if (irqstat & SL11H_INTMASK_INSRMV) { 678 if (irqstat & SL11H_INTMASK_INSRMV) {
679 sl811->stat_insrmv++; 679 sl811->stat_insrmv++;
680 680
@@ -714,7 +714,7 @@ retry:
714#endif 714#endif
715 715
716 /* port status seems weird until after reset, so 716 /* port status seems weird until after reset, so
717 * force the reset and make khubd clean up later. 717 * force the reset and make hub_wq clean up later.
718 */ 718 */
719 if (irqstat & SL11H_INTMASK_RD) 719 if (irqstat & SL11H_INTMASK_RD)
720 sl811->port1 &= ~USB_PORT_STAT_CONNECTION; 720 sl811->port1 &= ~USB_PORT_STAT_CONNECTION;
@@ -1079,7 +1079,7 @@ sl811h_hub_status_data(struct usb_hcd *hcd, char *buf)
1079 if (!(sl811->port1 & (0xffff << 16))) 1079 if (!(sl811->port1 & (0xffff << 16)))
1080 return 0; 1080 return 0;
1081 1081
1082 /* tell khubd port 1 changed */ 1082 /* tell hub_wq port 1 changed */
1083 *buf = (1 << 1); 1083 *buf = (1 << 1);
1084 return 1; 1084 return 1;
1085} 1085}
@@ -1196,7 +1196,7 @@ sl811h_timer(unsigned long _sl811)
1196 sl811_write(sl811, SL811_EP_A(SL11H_HOSTCTLREG), 1196 sl811_write(sl811, SL811_EP_A(SL11H_HOSTCTLREG),
1197 SL11H_HCTLMASK_ARM); 1197 SL11H_HCTLMASK_ARM);
1198 1198
1199 /* khubd provides debounce delay */ 1199 /* hub_wq provides debounce delay */
1200 } else { 1200 } else {
1201 sl811->ctrl1 = 0; 1201 sl811->ctrl1 = 0;
1202 } 1202 }
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
index 5e9f9bd02335..696160d48ae8 100644
--- a/drivers/usb/host/xhci-hub.c
+++ b/drivers/usb/host/xhci-hub.c
@@ -899,7 +899,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
899 /* 899 /*
900 * Turn on ports, even if there isn't per-port switching. 900 * Turn on ports, even if there isn't per-port switching.
901 * HC will report connect events even before this is set. 901 * HC will report connect events even before this is set.
902 * However, khubd will ignore the roothub events until 902 * However, hub_wq will ignore the roothub events until
903 * the roothub is registered. 903 * the roothub is registered.
904 */ 904 */
905 writel(temp | PORT_POWER, port_array[wIndex]); 905 writel(temp | PORT_POWER, port_array[wIndex]);
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 6ad16483da54..a4b89b9d6641 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -3760,8 +3760,8 @@ disable_slot:
3760/* 3760/*
3761 * Issue an Address Device command and optionally send a corresponding 3761 * Issue an Address Device command and optionally send a corresponding
3762 * SetAddress request to the device. 3762 * SetAddress request to the device.
3763 * We should be protected by the usb_address0_mutex in khubd's hub_port_init, so 3763 * We should be protected by the usb_address0_mutex in hub_wq's hub_port_init,
3764 * we should only issue and wait on one address command at the same time. 3764 * so we should only issue and wait on one address command at the same time.
3765 */ 3765 */
3766static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev, 3766static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev,
3767 enum xhci_setup_dev setup) 3767 enum xhci_setup_dev setup)
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
index 90e6644dc886..0bbafe795a72 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -2031,7 +2031,7 @@ static int test_unaligned_bulk(
2031 * 2031 *
2032 * WARNING: Because usbfs grabs udev->dev.sem before calling this ioctl(), 2032 * WARNING: Because usbfs grabs udev->dev.sem before calling this ioctl(),
2033 * it locks out usbcore in certain code paths. Notably, if you disconnect 2033 * it locks out usbcore in certain code paths. Notably, if you disconnect
2034 * the device-under-test, khubd will wait block forever waiting for the 2034 * the device-under-test, hub_wq will wait block forever waiting for the
2035 * ioctl to complete ... so that usb_disconnect() can abort the pending 2035 * ioctl to complete ... so that usb_disconnect() can abort the pending
2036 * urbs and then call usbtest_disconnect(). To abort a test, you're best 2036 * urbs and then call usbtest_disconnect(). To abort a test, you're best
2037 * off just killing the userspace task and waiting for it to exit. 2037 * off just killing the userspace task and waiting for it to exit.
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index 0a34dd859555..a2735df24cc6 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -1,3 +1,4 @@
1
1/* 2/*
2 * Texas Instruments AM35x "glue layer" 3 * Texas Instruments AM35x "glue layer"
3 * 4 *
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c
index 7dfc6cb732c9..2daa779f1382 100644
--- a/drivers/usb/musb/tusb6010.c
+++ b/drivers/usb/musb/tusb6010.c
@@ -433,7 +433,7 @@ static void musb_do_idle(unsigned long _musb)
433 if (!musb->is_active) { 433 if (!musb->is_active) {
434 u32 wakeups; 434 u32 wakeups;
435 435
436 /* wait until khubd handles port change status */ 436 /* wait until hub_wq handles port change status */
437 if (is_host_active(musb) && (musb->port1_status >> 16)) 437 if (is_host_active(musb) && (musb->port1_status >> 16))
438 goto done; 438 goto done;
439 439
diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c
index 2b0f968d9325..f1ea5990a50a 100644
--- a/drivers/usb/phy/phy-fsl-usb.c
+++ b/drivers/usb/phy/phy-fsl-usb.c
@@ -609,7 +609,7 @@ static int fsl_otg_set_host(struct usb_otg *otg, struct usb_bus *host)
609 otg->host->otg_port = fsl_otg_initdata.otg_port; 609 otg->host->otg_port = fsl_otg_initdata.otg_port;
610 otg->host->is_b_host = otg_dev->fsm.id; 610 otg->host->is_b_host = otg_dev->fsm.id;
611 /* 611 /*
612 * must leave time for khubd to finish its thing 612 * must leave time for hub_wq to finish its thing
613 * before yanking the host driver out from under it, 613 * before yanking the host driver out from under it,
614 * so suspend the host after a short delay. 614 * so suspend the host after a short delay.
615 */ 615 */
diff --git a/drivers/usb/phy/phy-isp1301-omap.c b/drivers/usb/phy/phy-isp1301-omap.c
index 69e49be8866b..8eea56d3ded6 100644
--- a/drivers/usb/phy/phy-isp1301-omap.c
+++ b/drivers/usb/phy/phy-isp1301-omap.c
@@ -1011,7 +1011,7 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat)
1011 break; 1011 break;
1012 case OTG_STATE_A_WAIT_VFALL: 1012 case OTG_STATE_A_WAIT_VFALL:
1013 state = OTG_STATE_A_IDLE; 1013 state = OTG_STATE_A_IDLE;
1014 /* khubd may take a while to notice and 1014 /* hub_wq may take a while to notice and
1015 * handle this disconnect, so don't go 1015 * handle this disconnect, so don't go
1016 * to B_IDLE quite yet. 1016 * to B_IDLE quite yet.
1017 */ 1017 */
diff --git a/drivers/usb/wusbcore/devconnect.c b/drivers/usb/wusbcore/devconnect.c
index 0677139c6065..3f4f5fbded55 100644
--- a/drivers/usb/wusbcore/devconnect.c
+++ b/drivers/usb/wusbcore/devconnect.c
@@ -329,7 +329,7 @@ void wusbhc_devconnect_ack(struct wusbhc *wusbhc, struct wusb_dn_connect *dnc,
329 port->wusb_dev = wusb_dev; 329 port->wusb_dev = wusb_dev;
330 port->status |= USB_PORT_STAT_CONNECTION; 330 port->status |= USB_PORT_STAT_CONNECTION;
331 port->change |= USB_PORT_STAT_C_CONNECTION; 331 port->change |= USB_PORT_STAT_C_CONNECTION;
332 /* Now the port status changed to connected; khubd will 332 /* Now the port status changed to connected; hub_wq will
333 * pick the change up and try to reset the port to bring it to 333 * pick the change up and try to reset the port to bring it to
334 * the enabled state--so this process returns up to the stack 334 * the enabled state--so this process returns up to the stack
335 * and it calls back into wusbhc_rh_port_reset(). 335 * and it calls back into wusbhc_rh_port_reset().
@@ -343,7 +343,7 @@ error_unlock:
343/* 343/*
344 * Disconnect a Wireless USB device from its fake port 344 * Disconnect a Wireless USB device from its fake port
345 * 345 *
346 * Marks the port as disconnected so that khubd can pick up the change 346 * Marks the port as disconnected so that hub_wq can pick up the change
347 * and drops our knowledge about the device. 347 * and drops our knowledge about the device.
348 * 348 *
349 * Assumes there is a device connected 349 * Assumes there is a device connected
@@ -379,7 +379,7 @@ static void __wusbhc_dev_disconnect(struct wusbhc *wusbhc,
379 wusbhc_gtk_rekey(wusbhc); 379 wusbhc_gtk_rekey(wusbhc);
380 380
381 /* The Wireless USB part has forgotten about the device already; now 381 /* The Wireless USB part has forgotten about the device already; now
382 * khubd's timer will pick up the disconnection and remove the USB 382 * hub_wq's timer will pick up the disconnection and remove the USB
383 * device from the system 383 * device from the system
384 */ 384 */
385} 385}
diff --git a/drivers/usb/wusbcore/wa-hc.h b/drivers/usb/wusbcore/wa-hc.h
index f2a8d29e17b9..edc7267157f3 100644
--- a/drivers/usb/wusbcore/wa-hc.h
+++ b/drivers/usb/wusbcore/wa-hc.h
@@ -64,7 +64,7 @@
64 * 64 *
65 * Note much of the activity is difficult to follow. For example a 65 * Note much of the activity is difficult to follow. For example a
66 * device connect goes to devconnect, which will cause the "fake" root 66 * device connect goes to devconnect, which will cause the "fake" root
67 * hub port to show a connect and stop there. Then khubd will notice 67 * hub port to show a connect and stop there. Then hub_wq will notice
68 * and call into the rh.c:hwahc_rc_port_reset() code to authenticate 68 * and call into the rh.c:hwahc_rc_port_reset() code to authenticate
69 * the device (and this might require user intervention) and enable 69 * the device (and this might require user intervention) and enable
70 * the port. 70 * the port.