Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Petr Mladek and committed by
Greg Kroah-Hartman
37ebb549 59d48b3f

+89 -86
+1 -1
Documentation/DocBook/usb.tmpl
··· 593 593 Each device has one control endpoint (endpoint zero) 594 594 which supports a limited RPC style RPC access. 595 595 Devices are configured 596 - by khubd (in the kernel) setting a device-wide 596 + by hub_wq (in the kernel) setting a device-wide 597 597 <emphasis>configuration</emphasis> that affects things 598 598 like power consumption and basic functionality. 599 599 The endpoints are part of USB <emphasis>interfaces</emphasis>,
+3 -3
Documentation/usb/WUSB-Design-overview.txt
··· 308 308 into /devconnect/). This process starts the authentication process for 309 309 the device. First we allocate a /fake port/ and assign an 310 310 unauthenticated address (128 to 255--what we really do is 311 - 0x80 | fake_port_idx). We fiddle with the fake port status and /khubd/ 311 + 0x80 | fake_port_idx). We fiddle with the fake port status and /hub_wq/ 312 312 sees a new connection, so he moves on to enable the fake port with a reset. 313 313 314 314 So now we are in the reset path -- we know we have a non-yet enumerated ··· 317 317 exchange (FIXME: not yet done) and issue a /set address 0/ to bring the 318 318 device to the default state. Device is authenticated. 319 319 320 - From here, the USB stack takes control through the usb_hcd ops. khubd 320 + From here, the USB stack takes control through the usb_hcd ops. hub_wq 321 321 has seen the port status changes, as we have been toggling them. It will 322 322 start enumerating and doing transfers through usb_hcd->urb_enqueue() to 323 323 read descriptors and move our data. ··· 331 331 arrives to us as a notification through 332 332 devconnect.c:wusb_handle_dn_alive(). If a device times out, we 333 333 disconnect it from the system (cleaning up internal information and 334 - toggling the bits in the fake hub port, which kicks khubd into removing 334 + toggling the bits in the fake hub port, which kicks hub_wq into removing 335 335 the rest of the stuff). 336 336 337 337 This is done through devconnect:__wusb_check_devs(), which will scan the
+1 -1
Documentation/usb/hotplug.txt
··· 58 58 59 59 The USB subsystem currently invokes /sbin/hotplug when USB devices 60 60 are added or removed from system. The invocation is done by the kernel 61 - hub daemon thread [khubd], or else as part of root hub initialization 61 + hub workqueue [hub_wq], or else as part of root hub initialization 62 62 (done by init, modprobe, kapmd, etc). Its single command line parameter 63 63 is the string "usb", and it passes these environment variables: 64 64
+8 -6
drivers/net/usb/usbnet.c
··· 69 69 // reawaken network queue this soon after stopping; else watchdog barks 70 70 #define TX_TIMEOUT_JIFFIES (5*HZ) 71 71 72 - // throttle rx/tx briefly after some faults, so khubd might disconnect() 73 - // us (it polls at HZ/4 usually) before we report too many false errors. 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. 74 + */ 74 75 #define THROTTLE_JIFFIES (HZ/8) 75 76 76 77 // between wakeups ··· 596 595 "rx shutdown, code %d\n", urb_status); 597 596 goto block; 598 597 599 - /* we get controller i/o faults during khubd disconnect() delays. 598 + /* we get controller i/o faults during hub_wq disconnect() delays. 600 599 * throttle down resubmits, to avoid log floods; just temporarily, 601 - * so we still recover when the fault isn't a khubd delay. 600 + * so we still recover when the fault isn't a hub_wq delay. 602 601 */ 603 602 case -EPROTO: 604 603 case -ETIME: ··· 1186 1185 case -ESHUTDOWN: // hardware gone 1187 1186 break; 1188 1187 1189 - // like rx, tx gets controller i/o faults during khubd delays 1190 - // and so it uses the same throttling mechanism. 1188 + /* like rx, tx gets controller i/o faults during hub_wq 1189 + * delays and so it uses the same throttling mechanism. 1190 + */ 1191 1191 case -EPROTO: 1192 1192 case -ETIME: 1193 1193 case -EILSEQ:
+1 -1
drivers/usb/README
··· 24 24 them. 25 25 26 26 core/ - 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 29 29 host/ - This is for USB host controller drivers. This 30 30 includes UHCI, OHCI, EHCI, and others that might
+5 -5
drivers/usb/core/hcd.c
··· 2301 2301 * Context: in_interrupt() 2302 2302 * 2303 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 2305 * This is needed by OTG controller drivers, where it helps meet 2306 2306 * HNP protocol timing requirements for starting a port reset. 2307 2307 * ··· 2320 2320 if (port_num && hcd->driver->start_port_reset) 2321 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 2324 * it may issue others, until at least 50 msecs have passed. 2325 2325 */ 2326 2326 if (status == 0) ··· 2383 2383 if (hcd->rh_registered) { 2384 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 2387 usb_set_device_state (hcd->self.root_hub, 2388 2388 USB_STATE_NOTATTACHED); 2389 2389 usb_kick_hub_wq(hcd->self.root_hub); ··· 2393 2393 if (hcd->rh_registered) { 2394 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 2397 usb_set_device_state(hcd->self.root_hub, 2398 2398 USB_STATE_NOTATTACHED); 2399 2399 usb_kick_hub_wq(hcd->self.root_hub); ··· 2655 2655 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); 2656 2656 2657 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 2659 * starts talking to them. (Note, bus id is assigned early too.) 2660 2660 */ 2661 2661 if ((retval = hcd_buffer_create(hcd)) != 0) {
+22 -22
drivers/usb/core/hub.c
··· 652 652 hub->error = status; 653 653 /* FALL THROUGH */ 654 654 655 - /* let khubd handle things */ 655 + /* let hub_wq handle things */ 656 656 case 0: /* we got data: port status changed */ 657 657 bits = 0; 658 658 for (i = 0; i < urb->actual_length; ++i) ··· 664 664 665 665 hub->nerrors = 0; 666 666 667 - /* Something happened, let khubd figure it out */ 667 + /* Something happened, let hub_wq figure it out */ 668 668 kick_hub_wq(hub); 669 669 670 670 resubmit: ··· 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 699 * long blocking there is the exception, not the rule. accordingly, HCDs 700 700 * talking to TTs must queue control transfers (not just bulk and iso), so 701 701 * both can talk to the same hub concurrently. ··· 961 961 962 962 /* 963 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 965 * and will re-enumerate if there actually is a device attached. 966 966 */ 967 967 static void hub_port_logical_disconnect(struct usb_hub *hub, int port1) ··· 974 974 * - SRP saves power that way 975 975 * - ... new call, TBD ... 976 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 978 * Powerdown must be optional, because of reset/DFU. 979 979 */ 980 980 ··· 987 987 * @udev: device to be disabled and removed 988 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 991 * see that the device has been disconnected. When the device is 992 992 * physically unplugged and something is plugged in, the events will 993 993 * be received and processed normally. ··· 1107 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 1111 * which ports need attention. 1112 1112 */ 1113 1113 for (port1 = 1; port1 <= hdev->maxchild; ++port1) { ··· 1174 1174 clear_bit(port1, hub->removed_bits); 1175 1175 1176 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 1178 * check for a new connection 1179 1179 */ 1180 1180 if (udev || (portstatus & USB_PORT_STAT_CONNECTION) || ··· 1187 1187 USB_SS_PORT_LS_U0; 1188 1188 /* The power session apparently survived the resume. 1189 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 1191 * take care of it. Look at the port link state 1192 1192 * for USB 3.0 hubs, since they don't have a suspend 1193 1193 * change bit, and they don't set the port link change ··· 1208 1208 set_bit(port1, hub->change_bits); 1209 1209 1210 1210 } else { 1211 - /* The power session is gone; tell khubd */ 1211 + /* The power session is gone; tell hub_wq */ 1212 1212 usb_set_device_state(udev, USB_STATE_NOTATTACHED); 1213 1213 set_bit(port1, hub->change_bits); 1214 1214 } ··· 1216 1216 1217 1217 /* If no port-status-change flags were set, we don't need any 1218 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 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 1223 * will see them later and handle them normally. 1224 1224 */ 1225 1225 if (need_debounce_delay) { ··· 1280 1280 1281 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 1284 hub->quiescing = 1; 1285 1285 1286 1286 if (type != HUB_SUSPEND) { ··· 1291 1291 } 1292 1292 } 1293 1293 1294 - /* Stop khubd and related activity */ 1294 + /* Stop hub_wq and related activity */ 1295 1295 usb_kill_urb(hub->urb); 1296 1296 if (hub->has_indicators) 1297 1297 cancel_delayed_work_sync(&hub->leds); ··· 1613 1613 if (ret < 0) 1614 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 1617 * starts getting port status changes for devices under the hub. 1618 1618 */ 1619 1619 if (hcd->driver->update_hub_device) { ··· 2045 2045 int devnum; 2046 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 2049 if (udev->wusb) { 2050 2050 devnum = udev->portnum + 1; 2051 2051 BUG_ON(test_bit(devnum, bus->devmap.devicemap)); ··· 3074 3074 * Once VBUS drop breaks the circuit, the port it's using has to go through 3075 3075 * normal re-enumeration procedures, starting with enabling VBUS power. 3076 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 3078 * timer, no SRP, no requests through sysfs. 3079 3079 * 3080 3080 * If Runtime PM isn't enabled or used, non-SuperSpeed devices may not get ··· 3216 3216 /* usb ch9 identifies four variants of SUSPENDED, based on what 3217 3217 * state the device resumes to. Linux currently won't see the 3218 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 3221 usb_set_device_state(udev, udev->actconfig 3222 3222 ? USB_STATE_CONFIGURED ··· 3581 3581 3582 3582 dev_dbg(&intf->dev, "%s\n", __func__); 3583 3583 3584 - /* stop khubd and related activity */ 3584 + /* stop hub_wq and related activity */ 3585 3585 hub_quiesce(hub, HUB_SUSPEND); 3586 3586 return 0; 3587 3587 } ··· 4977 4977 * On disconnect USB3 protocol ports transit from U0 to 4978 4978 * SS.Inactive to Rx.Detect. If this happens a warm- 4979 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 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 4984 * seeing it the C_LINK_STATE change flag will be set, 4985 4985 * and we reset the dev to put it in a known state. 4986 4986 */ ··· 5290 5290 * former operating configuration. If the reset fails, or the device's 5291 5291 * descriptors change from their values before the reset, or the original 5292 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 5294 * re-connected. All drivers will be unbound, and the device will be 5295 5295 * re-enumerated and probed all over again. 5296 5296 *
+1 -1
drivers/usb/host/ehci-fsl.c
··· 627 627 if (!(status & PORT_CONNECT)) 628 628 return -ENODEV; 629 629 630 - /* khubd will finish the reset later */ 630 + /* hub_wq will finish the reset later */ 631 631 if (ehci_is_TDI(ehci)) { 632 632 writel(PORT_RESET | 633 633 (status & ~(PORT_CSC | PORT_PEC | PORT_OCC)),
+1 -1
drivers/usb/host/ehci-hcd.c
··· 788 788 continue; 789 789 790 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 792 * stop that signaling. Use 5 ms extra for safety, 793 793 * like usb_port_resume() does. 794 794 */
+4 -4
drivers/usb/host/ehci-hub.c
··· 656 656 657 657 /* 658 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 660 * high-speed device is switched over to the companion 661 661 * controller by the user. 662 662 */ ··· 902 902 903 903 /* 904 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 906 * the port-change status bits (especially 907 907 * USB_PORT_STAT_C_CONNECTION). 908 908 */ ··· 1000 1000 * However, not all EHCI implementations do this 1001 1001 * automatically, even if they _do_ support per-port 1002 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 1005 if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle)) 1006 1006 && HCS_PPC(ehci->hcs_params)) { ··· 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 1089 * see the wPortStatus values (they should all be 0 except 1090 1090 * for PORT_POWER anyway). 1091 1091 */
+3 -3
drivers/usb/host/fhci-hcd.c
··· 360 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 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 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 369 * and device drivers may start it running. 370 370 */ 371 371 fhci_usb_enable(fhci);
+4 -4
drivers/usb/host/fotg210-hcd.c
··· 1483 1483 1484 1484 /* 1485 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 1487 * high-speed device is switched over to the companion 1488 1488 * controller by the user. 1489 1489 */ ··· 1572 1572 1573 1573 /* 1574 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 1576 * the port-change status bits (especially 1577 1577 * USB_PORT_STAT_C_CONNECTION). 1578 1578 */ ··· 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 1727 * see the wPortStatus values (they should all be 0 except 1728 1728 * for PORT_POWER anyway). 1729 1729 */ ··· 5445 5445 fotg210->reset_done[0] == 0) { 5446 5446 5447 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 5449 * stop that signaling. Use 5 ms extra for safety, 5450 5450 * like usb_port_resume() does. 5451 5451 */
+4 -4
drivers/usb/host/fusbh200-hcd.c
··· 1441 1441 1442 1442 /* 1443 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 1445 * high-speed device is switched over to the companion 1446 1446 * controller by the user. 1447 1447 */ ··· 1530 1530 1531 1531 /* 1532 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 1534 * the port-change status bits (especially 1535 1535 * USB_PORT_STAT_C_CONNECTION). 1536 1536 */ ··· 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 1682 * see the wPortStatus values (they should all be 0 except 1683 1683 * for PORT_POWER anyway). 1684 1684 */ ··· 5355 5355 fusbh200->reset_done[0] == 0) { 5356 5356 5357 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 5359 * stop that signaling. Use 5 ms extra for safety, 5360 5360 * like usb_port_resume() does. 5361 5361 */
+3 -3
drivers/usb/host/isp1760-hcd.c
··· 1760 1760 1761 1761 /* 1762 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 1764 * high-speed device is switched over to the companion 1765 1765 * controller by the user. 1766 1766 */ ··· 1871 1871 1872 1872 /* 1873 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 1875 * the port-change status bits (especially 1876 1876 * USB_PORT_STAT_C_CONNECTION). 1877 1877 */ ··· 2000 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 2004 * see the wPortStatus values (they should all be 0 except 2005 2005 * for PORT_POWER anyway). 2006 2006 */
+3 -3
drivers/usb/host/ohci-hcd.c
··· 632 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 636 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); 637 637 hcd->uses_new_polling = 1; 638 638 ··· 909 909 * choices for RHSC. Many followed the spec; RHSC triggers 910 910 * on an edge, like setting and maybe clearing a port status 911 911 * change bit. With others it's level-triggered, active 912 - * until khubd clears all the port status change bits. We'll 913 - * always disable it here and rely on polling until khubd 912 + * until hub_wq clears all the port status change bits. We'll 913 + * always disable it here and rely on polling until hub_wq 914 914 * re-enables it. 915 915 */ 916 916 ohci_writel(ohci, OHCI_INTR_RHSC, &regs->intrdisable);
+2 -2
drivers/usb/host/ohci-hub.c
··· 585 585 if (!(status & RH_PS_CCS)) 586 586 return -ENODEV; 587 587 588 - /* khubd will finish the reset later */ 588 + /* hub_wq will finish the reset later */ 589 589 ohci_writel(ohci, RH_PS_PRS, &ohci->regs->roothub.portstatus [port]); 590 590 return 0; 591 591 } ··· 610 610 /* wrap-aware logic morphed from <linux/jiffies.h> */ 611 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 */ 614 614 static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port) 615 615 { 616 616 __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port];
+1 -1
drivers/usb/host/ohci-omap.c
··· 283 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 287 omap_ohci_transceiver_power(1); 288 288 289 289 /* board init will have already handled HMC and mux setup.
+5 -5
drivers/usb/host/oxu210hp-hcd.c
··· 2046 2046 2047 2047 /* simple/paranoid: always delay, expecting the HC needs to read 2048 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 2050 * active high speed queues may need bigger delays... 2051 2051 */ 2052 2052 if (list_empty(&qh->qtd_list) ··· 2501 2501 continue; 2502 2502 2503 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 2505 * stop that signaling. 2506 2506 */ 2507 2507 oxu->reset_done[i] = jiffies + msecs_to_jiffies(20); ··· 3119 3119 3120 3120 /* 3121 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 3123 * high-speed device is switched over to the companion 3124 3124 * controller by the user. 3125 3125 */ ··· 3194 3194 3195 3195 /* 3196 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 3198 * the port-change status bits (especially 3199 3199 * USB_PORT_STAT_C_CONNECTION). 3200 3200 */ ··· 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 3340 * see the wPortStatus values (they should all be 0 except 3341 3341 * for PORT_POWER anyway). 3342 3342 */
+4 -4
drivers/usb/host/sl811-hcd.c
··· 674 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 678 if (irqstat & SL11H_INTMASK_INSRMV) { 679 679 sl811->stat_insrmv++; 680 680 ··· 714 714 #endif 715 715 716 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 719 if (irqstat & SL11H_INTMASK_RD) 720 720 sl811->port1 &= ~USB_PORT_STAT_CONNECTION; ··· 1079 1079 if (!(sl811->port1 & (0xffff << 16))) 1080 1080 return 0; 1081 1081 1082 - /* tell khubd port 1 changed */ 1082 + /* tell hub_wq port 1 changed */ 1083 1083 *buf = (1 << 1); 1084 1084 return 1; 1085 1085 } ··· 1196 1196 sl811_write(sl811, SL811_EP_A(SL11H_HOSTCTLREG), 1197 1197 SL11H_HCTLMASK_ARM); 1198 1198 1199 - /* khubd provides debounce delay */ 1199 + /* hub_wq provides debounce delay */ 1200 1200 } else { 1201 1201 sl811->ctrl1 = 0; 1202 1202 }
+1 -1
drivers/usb/host/xhci-hub.c
··· 899 899 /* 900 900 * Turn on ports, even if there isn't per-port switching. 901 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 903 * the roothub is registered. 904 904 */ 905 905 writel(temp | PORT_POWER, port_array[wIndex]);
+2 -2
drivers/usb/host/xhci.c
··· 3760 3760 /* 3761 3761 * Issue an Address Device command and optionally send a corresponding 3762 3762 * SetAddress request to the device. 3763 - * We should be protected by the usb_address0_mutex in khubd's hub_port_init, so 3764 - * we should only issue and wait on one address command at the same time. 3763 + * We should be protected by the usb_address0_mutex in hub_wq's hub_port_init, 3764 + * so we should only issue and wait on one address command at the same time. 3765 3765 */ 3766 3766 static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev, 3767 3767 enum xhci_setup_dev setup)
+1 -1
drivers/usb/misc/usbtest.c
··· 2031 2031 * 2032 2032 * WARNING: Because usbfs grabs udev->dev.sem before calling this ioctl(), 2033 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 2035 * ioctl to complete ... so that usb_disconnect() can abort the pending 2036 2036 * urbs and then call usbtest_disconnect(). To abort a test, you're best 2037 2037 * off just killing the userspace task and waiting for it to exit.
+1
drivers/usb/musb/am35x.c
··· 1 + 1 2 /* 2 3 * Texas Instruments AM35x "glue layer" 3 4 *
+1 -1
drivers/usb/musb/tusb6010.c
··· 433 433 if (!musb->is_active) { 434 434 u32 wakeups; 435 435 436 - /* wait until khubd handles port change status */ 436 + /* wait until hub_wq handles port change status */ 437 437 if (is_host_active(musb) && (musb->port1_status >> 16)) 438 438 goto done; 439 439
+1 -1
drivers/usb/phy/phy-fsl-usb.c
··· 609 609 otg->host->otg_port = fsl_otg_initdata.otg_port; 610 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 613 * before yanking the host driver out from under it, 614 614 * so suspend the host after a short delay. 615 615 */
+1 -1
drivers/usb/phy/phy-isp1301-omap.c
··· 1011 1011 break; 1012 1012 case OTG_STATE_A_WAIT_VFALL: 1013 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 1015 * handle this disconnect, so don't go 1016 1016 * to B_IDLE quite yet. 1017 1017 */
+3 -3
drivers/usb/wusbcore/devconnect.c
··· 329 329 port->wusb_dev = wusb_dev; 330 330 port->status |= USB_PORT_STAT_CONNECTION; 331 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 333 * pick the change up and try to reset the port to bring it to 334 334 * the enabled state--so this process returns up to the stack 335 335 * and it calls back into wusbhc_rh_port_reset(). ··· 343 343 /* 344 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 347 * and drops our knowledge about the device. 348 348 * 349 349 * Assumes there is a device connected ··· 379 379 wusbhc_gtk_rekey(wusbhc); 380 380 381 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 383 * device from the system 384 384 */ 385 385 }
+1 -1
drivers/usb/wusbcore/wa-hc.h
··· 64 64 * 65 65 * Note much of the activity is difficult to follow. For example a 66 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 68 * and call into the rh.c:hwahc_rc_port_reset() code to authenticate 69 69 * the device (and this might require user intervention) and enable 70 70 * the port.
+1 -1
sound/usb/midi.c
··· 64 64 /* #define DUMP_PACKETS */ 65 65 66 66 /* 67 - * how long to wait after some USB errors, so that khubd can disconnect() us 67 + * how long to wait after some USB errors, so that hub_wq can disconnect() us 68 68 * without too many spurious errors 69 69 */ 70 70 #define ERROR_DELAY_JIFFIES (HZ / 10)