]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: hub: rename khubd to hub_wq in documentation and comments
authorPetr Mladek <pmladek@suse.cz>
Fri, 19 Sep 2014 15:32:23 +0000 (17:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 05:33:19 +0000 (22:33 -0700)
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>
29 files changed:
Documentation/DocBook/usb.tmpl
Documentation/usb/WUSB-Design-overview.txt
Documentation/usb/hotplug.txt
drivers/net/usb/usbnet.c
drivers/usb/README
drivers/usb/core/hcd.c
drivers/usb/core/hub.c
drivers/usb/host/ehci-fsl.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/fhci-hcd.c
drivers/usb/host/fotg210-hcd.c
drivers/usb/host/fusbh200-hcd.c
drivers/usb/host/isp1760-hcd.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-hub.c
drivers/usb/host/ohci-omap.c
drivers/usb/host/oxu210hp-hcd.c
drivers/usb/host/sl811-hcd.c
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci.c
drivers/usb/misc/usbtest.c
drivers/usb/musb/am35x.c
drivers/usb/musb/tusb6010.c
drivers/usb/phy/phy-fsl-usb.c
drivers/usb/phy/phy-isp1301-omap.c
drivers/usb/wusbcore/devconnect.c
drivers/usb/wusbcore/wa-hc.h
sound/usb/midi.c

index 85fc0e28576f9a075ef2c5a500b1d3f6d0230bcb..4cd5b2cd0f3d47e11e0d3cf8c9b76d3f39b8ec83 100644 (file)
@@ -593,7 +593,7 @@ for (;;) {
            Each device has one control endpoint (endpoint zero)
            which supports a limited RPC style RPC access.
            Devices are configured
-           by khubd (in the kernel) setting a device-wide
+           by hub_wq (in the kernel) setting a device-wide
            <emphasis>configuration</emphasis> that affects things
            like power consumption and basic functionality.
            The endpoints are part of USB <emphasis>interfaces</emphasis>,
index 512238c3dc86c3c8818200eed2becb1e309000b1..fdb47637720e0aba96f99c0787634ddc55291d9b 100644 (file)
@@ -308,7 +308,7 @@ HC picks the /DN_Connect/ out (nep module sends to notif.c for delivery
 into /devconnect/). This process starts the authentication process for
 the device. First we allocate a /fake port/ and assign an
 unauthenticated address (128 to 255--what we really do is
-0x80 | fake_port_idx). We fiddle with the fake port status and /khubd/
+0x80 | fake_port_idx). We fiddle with the fake port status and /hub_wq/
 sees a new connection, so he moves on to enable the fake port with a reset.
 
 So now we are in the reset path -- we know we have a non-yet enumerated
@@ -317,7 +317,7 @@ device with an unauthorized address; we ask user space to authenticate
 exchange (FIXME: not yet done) and issue a /set address 0/ to bring the
 device to the default state. Device is authenticated.
 
-From here, the USB stack takes control through the usb_hcd ops. khubd
+From here, the USB stack takes control through the usb_hcd ops. hub_wq
 has seen the port status changes, as we have been toggling them. It will
 start enumerating and doing transfers through usb_hcd->urb_enqueue() to
 read descriptors and move our data.
@@ -331,7 +331,7 @@ Keep Alive IE; it responds with a /DN_Alive/ pong during the DNTS (this
 arrives to us as a notification through
 devconnect.c:wusb_handle_dn_alive(). If a device times out, we
 disconnect it from the system (cleaning up internal information and
-toggling the bits in the fake hub port, which kicks khubd into removing
+toggling the bits in the fake hub port, which kicks hub_wq into removing
 the rest of the stuff).
 
 This is done through devconnect:__wusb_check_devs(), which will scan the
index a80b0e9a7a0bbdf5e415c8f3423bba735ee640f3..5b243f315b2c0cf601b3b2915cbc52329911cfaf 100644 (file)
@@ -58,7 +58,7 @@ USB POLICY AGENT
 
 The USB subsystem currently invokes /sbin/hotplug when USB devices
 are added or removed from system.  The invocation is done by the kernel
-hub daemon thread [khubd], or else as part of root hub initialization
+hub workqueue [hub_wq], or else as part of root hub initialization
 (done by init, modprobe, kapmd, etc).  Its single command line parameter
 is the string "usb", and it passes these environment variables:
 
index 5173821a9575e4131f9b45ceef41c9c1eda52cfd..20615bbd693b2eb782f8a6bba08adaff3cfa724a 100644 (file)
@@ -69,8 +69,9 @@
 // reawaken network queue this soon after stopping; else watchdog barks
 #define TX_TIMEOUT_JIFFIES     (5*HZ)
 
-// throttle rx/tx briefly after some faults, so khubd might disconnect()
-// us (it polls at HZ/4 usually) before we report too many false errors.
+/* throttle rx/tx briefly after some faults, so hub_wq might disconnect()
+ * us (it polls at HZ/4 usually) before we report too many false errors.
+ */
 #define THROTTLE_JIFFIES       (HZ/8)
 
 // between wakeups
@@ -595,9 +596,9 @@ static void rx_complete (struct urb *urb)
                          "rx shutdown, code %d\n", urb_status);
                goto block;
 
-       /* we get controller i/o faults during khubd disconnect() delays.
+       /* we get controller i/o faults during hub_wq disconnect() delays.
         * throttle down resubmits, to avoid log floods; just temporarily,
-        * so we still recover when the fault isn't a khubd delay.
+        * so we still recover when the fault isn't a hub_wq delay.
         */
        case -EPROTO:
        case -ETIME:
@@ -1185,8 +1186,9 @@ static void tx_complete (struct urb *urb)
                case -ESHUTDOWN:                // hardware gone
                        break;
 
-               // like rx, tx gets controller i/o faults during khubd delays
-               // and so it uses the same throttling mechanism.
+               /* like rx, tx gets controller i/o faults during hub_wq
+                * delays and so it uses the same throttling mechanism.
+                */
                case -EPROTO:
                case -ETIME:
                case -EILSEQ:
index 284f46b3e1ccde24f74013c2f93b9cbc547845e6..2144e7dbfa4142a1089b9d746637d1f703d536ef 100644 (file)
@@ -24,7 +24,7 @@ Here is a list of what each subdirectory here is, and what is contained in
 them.
 
 core/          - This is for the core USB host code, including the
-                 usbfs files and the hub class driver ("khubd").
+                 usbfs files and the hub class driver ("hub_wq").
 
 host/          - This is for USB host controller drivers.  This
                  includes UHCI, OHCI, EHCI, and others that might
index 761ccf02d7a0f7988827f5e604fcd0375388597c..d3fe161bec0544bed43aff9cd3169c205b335c3c 100644 (file)
@@ -2301,7 +2301,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_resume_root_hub);
  * Context: in_interrupt()
  *
  * Starts enumeration, with an immediate reset followed later by
- * khubd identifying and possibly configuring the device.
+ * hub_wq identifying and possibly configuring the device.
  * This is needed by OTG controller drivers, where it helps meet
  * HNP protocol timing requirements for starting a port reset.
  *
@@ -2320,7 +2320,7 @@ int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num)
        if (port_num && hcd->driver->start_port_reset)
                status = hcd->driver->start_port_reset(hcd, port_num);
 
-       /* run khubd shortly after (first) root port reset finishes;
+       /* allocate hub_wq shortly after (first) root port reset finishes;
         * it may issue others, until at least 50 msecs have passed.
         */
        if (status == 0)
@@ -2383,7 +2383,7 @@ void usb_hc_died (struct usb_hcd *hcd)
        if (hcd->rh_registered) {
                clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
 
-               /* make khubd clean up old urbs and devices */
+               /* make hub_wq clean up old urbs and devices */
                usb_set_device_state (hcd->self.root_hub,
                                USB_STATE_NOTATTACHED);
                usb_kick_hub_wq(hcd->self.root_hub);
@@ -2393,7 +2393,7 @@ void usb_hc_died (struct usb_hcd *hcd)
                if (hcd->rh_registered) {
                        clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
 
-                       /* make khubd clean up old urbs and devices */
+                       /* make hub_wq clean up old urbs and devices */
                        usb_set_device_state(hcd->self.root_hub,
                                        USB_STATE_NOTATTACHED);
                        usb_kick_hub_wq(hcd->self.root_hub);
@@ -2655,7 +2655,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
        set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
 
        /* HC is in reset state, but accessible.  Now do the one-time init,
-        * bottom up so that hcds can customize the root hubs before khubd
+        * bottom up so that hcds can customize the root hubs before hub_wq
         * starts talking to them.  (Note, bus id is assigned early too.)
         */
        if ((retval = hcd_buffer_create(hcd)) != 0) {
index 9b01ab2bbe7de41fcc26d84f4f918b788b64d652..12a4c67667b17c63c4da3eb72ce3723d38f7e56a 100644 (file)
@@ -652,7 +652,7 @@ static void hub_irq(struct urb *urb)
                hub->error = status;
                /* FALL THROUGH */
 
-       /* let khubd handle things */
+       /* let hub_wq handle things */
        case 0:                 /* we got data:  port status changed */
                bits = 0;
                for (i = 0; i < urb->actual_length; ++i)
@@ -664,7 +664,7 @@ static void hub_irq(struct urb *urb)
 
        hub->nerrors = 0;
 
-       /* Something happened, let khubd figure it out */
+       /* Something happened, let hub_wq figure it out */
        kick_hub_wq(hub);
 
 resubmit:
@@ -695,7 +695,7 @@ hub_clear_tt_buffer (struct usb_device *hdev, u16 devinfo, u16 tt)
 }
 
 /*
- * enumeration blocks khubd for a long time. we use keventd instead, since
+ * enumeration blocks hub_wq for a long time. we use keventd instead, since
  * long blocking there is the exception, not the rule.  accordingly, HCDs
  * talking to TTs must queue control transfers (not just bulk and iso), so
  * 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)
 
 /*
  * Disable a port and mark a logical connect-change event, so that some
- * time later khubd will disconnect() any existing usb_device on the port
+ * time later hub_wq will disconnect() any existing usb_device on the port
  * and will re-enumerate if there actually is a device attached.
  */
 static 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)
         *  - SRP saves power that way
         *  - ... new call, TBD ...
         * That's easy if this hub can switch power per-port, and
-        * khubd reactivates the port later (timer, SRP, etc).
+        * hub_wq reactivates the port later (timer, SRP, etc).
         * Powerdown must be optional, because of reset/DFU.
         */
 
@@ -987,7 +987,7 @@ static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
  * @udev: device to be disabled and removed
  * Context: @udev locked, must be able to sleep.
  *
- * After @udev's port has been disabled, khubd is notified and it will
+ * After @udev's port has been disabled, hub_wq is notified and it will
  * see that the device has been disconnected.  When the device is
  * physically unplugged and something is plugged in, the events will
  * be received and processed normally.
@@ -1107,7 +1107,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
  init2:
 
        /*
-        * Check each port and set hub->change_bits to let khubd know
+        * Check each port and set hub->change_bits to let hub_wq know
         * which ports need attention.
         */
        for (port1 = 1; port1 <= hdev->maxchild; ++port1) {
@@ -1174,7 +1174,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
                        clear_bit(port1, hub->removed_bits);
 
                if (!udev || udev->state == USB_STATE_NOTATTACHED) {
-                       /* Tell khubd to disconnect the device or
+                       /* Tell hub_wq to disconnect the device or
                         * check for a new connection
                         */
                        if (udev || (portstatus & USB_PORT_STAT_CONNECTION) ||
@@ -1187,7 +1187,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
                                USB_SS_PORT_LS_U0;
                        /* The power session apparently survived the resume.
                         * If there was an overcurrent or suspend change
-                        * (i.e., remote wakeup request), have khubd
+                        * (i.e., remote wakeup request), have hub_wq
                         * take care of it.  Look at the port link state
                         * for USB 3.0 hubs, since they don't have a suspend
                         * 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)
                                set_bit(port1, hub->change_bits);
 
                } else {
-                       /* The power session is gone; tell khubd */
+                       /* The power session is gone; tell hub_wq */
                        usb_set_device_state(udev, USB_STATE_NOTATTACHED);
                        set_bit(port1, hub->change_bits);
                }
@@ -1216,10 +1216,10 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
 
        /* If no port-status-change flags were set, we don't need any
         * debouncing.  If flags were set we can try to debounce the
-        * ports all at once right now, instead of letting khubd do them
+        * ports all at once right now, instead of letting hub_wq do them
         * one at a time later on.
         *
-        * If any port-status changes do occur during this delay, khubd
+        * If any port-status changes do occur during this delay, hub_wq
         * will see them later and handle them normally.
         */
        if (need_debounce_delay) {
@@ -1280,7 +1280,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
 
        cancel_delayed_work_sync(&hub->init_work);
 
-       /* khubd and related activity won't re-trigger */
+       /* hub_wq and related activity won't re-trigger */
        hub->quiescing = 1;
 
        if (type != HUB_SUSPEND) {
@@ -1291,7 +1291,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
                }
        }
 
-       /* Stop khubd and related activity */
+       /* Stop hub_wq and related activity */
        usb_kill_urb(hub->urb);
        if (hub->has_indicators)
                cancel_delayed_work_sync(&hub->leds);
@@ -1613,7 +1613,7 @@ static int hub_configure(struct usb_hub *hub,
        if (ret < 0)
                goto fail;
 
-       /* Update the HCD's internal representation of this hub before khubd
+       /* Update the HCD's internal representation of this hub before hub_wq
         * starts getting port status changes for devices under the hub.
         */
        if (hcd->driver->update_hub_device) {
@@ -2045,7 +2045,7 @@ static void choose_devnum(struct usb_device *udev)
        int             devnum;
        struct usb_bus  *bus = udev->bus;
 
-       /* If khubd ever becomes multithreaded, this will need a lock */
+       /* If hub_wq ever becomes multithreaded, this will need a lock */
        if (udev->wusb) {
                devnum = udev->portnum + 1;
                BUG_ON(test_bit(devnum, bus->devmap.devicemap));
@@ -3074,7 +3074,7 @@ static unsigned wakeup_enabled_descendants(struct usb_device *udev)
  * Once VBUS drop breaks the circuit, the port it's using has to go through
  * normal re-enumeration procedures, starting with enabling VBUS power.
  * Other than re-initializing the hub (plug/unplug, except for root hubs),
- * Linux (2.6) currently has NO mechanisms to initiate that:  no khubd
+ * Linux (2.6) currently has NO mechanisms to initiate that:  no hub_wq
  * timer, no SRP, no requests through sysfs.
  *
  * 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)
        /* usb ch9 identifies four variants of SUSPENDED, based on what
         * state the device resumes to.  Linux currently won't see the
         * first two on the host side; they'd be inside hub_port_init()
-        * during many timeouts, but khubd can't suspend until later.
+        * during many timeouts, but hub_wq can't suspend until later.
         */
        usb_set_device_state(udev, udev->actconfig
                        ? USB_STATE_CONFIGURED
@@ -3581,7 +3581,7 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
 
        dev_dbg(&intf->dev, "%s\n", __func__);
 
-       /* stop khubd and related activity */
+       /* stop hub_wq and related activity */
        hub_quiesce(hub, HUB_SUSPEND);
        return 0;
 }
@@ -4977,10 +4977,10 @@ static void port_event(struct usb_hub *hub, int port1)
         * On disconnect USB3 protocol ports transit from U0 to
         * SS.Inactive to Rx.Detect. If this happens a warm-
         * reset is not needed, but a (re)connect may happen
-        * before khubd runs and sees the disconnect, and the
+        * before hub_wq runs and sees the disconnect, and the
         * device may be an unknown state.
         *
-        * If the port went through SS.Inactive without khubd
+        * If the port went through SS.Inactive without hub_wq
         * seeing it the C_LINK_STATE change flag will be set,
         * and we reset the dev to put it in a known state.
         */
@@ -5290,7 +5290,7 @@ static int descriptors_changed(struct usb_device *udev,
  * former operating configuration.  If the reset fails, or the device's
  * descriptors change from their values before the reset, or the original
  * configuration and altsettings cannot be restored, a flag will be set
- * telling khubd to pretend the device has been disconnected and then
+ * telling hub_wq to pretend the device has been disconnected and then
  * re-connected.  All drivers will be unbound, and the device will be
  * re-enumerated and probed all over again.
  *
index cf2734b532a7ab288d24dd13fd79db364490a748..3d84b6a41dae6210e3cf9bd2ad2674d814295524 100644 (file)
@@ -627,7 +627,7 @@ static int ehci_start_port_reset(struct usb_hcd *hcd, unsigned port)
        if (!(status & PORT_CONNECT))
                return -ENODEV;
 
-       /* khubd will finish the reset later */
+       /* hub_wq will finish the reset later */
        if (ehci_is_TDI(ehci)) {
                writel(PORT_RESET |
                       (status & ~(PORT_CSC | PORT_PEC | PORT_OCC)),
index 488a30836c36cbee57f2e16f7813db7075891699..15feaf924b71aea658fa8529bcea1f3c3d53256f 100644 (file)
@@ -788,7 +788,7 @@ static irqreturn_t ehci_irq (struct usb_hcd *hcd)
                                continue;
 
                        /* start 20 msec resume signaling from this port,
-                        * and make khubd collect PORT_STAT_C_SUSPEND to
+                        * and make hub_wq collect PORT_STAT_C_SUSPEND to
                         * stop that signaling.  Use 5 ms extra for safety,
                         * like usb_port_resume() does.
                         */
index 6130b757490893a471dd3cbfa33026e8b8738071..7ccb3ccf8e86854b74a7301f9cc0b2b91eb6193b 100644 (file)
@@ -656,7 +656,7 @@ ehci_hub_status_data (struct usb_hcd *hcd, char *buf)
 
                /*
                 * Return status information even for ports with OWNER set.
-                * Otherwise khubd wouldn't see the disconnect event when a
+                * Otherwise hub_wq wouldn't see the disconnect event when a
                 * high-speed device is switched over to the companion
                 * controller by the user.
                 */
@@ -902,7 +902,7 @@ int ehci_hub_control(
 
                /*
                 * Even if OWNER is set, so the port is owned by the
-                * companion controller, khubd needs to be able to clear
+                * companion controller, hub_wq needs to be able to clear
                 * the port-change status bits (especially
                 * USB_PORT_STAT_C_CONNECTION).
                 */
@@ -1000,7 +1000,7 @@ int ehci_hub_control(
                         * However, not all EHCI implementations do this
                         * automatically, even if they _do_ support per-port
                         * power switching; they're allowed to just limit the
-                        * current.  khubd will turn the power back on.
+                        * current.  hub_wq will turn the power back on.
                         */
                        if (((temp & PORT_OC) || (ehci->need_oc_pp_cycle))
                                        && HCS_PPC(ehci->hcs_params)) {
@@ -1085,7 +1085,7 @@ int ehci_hub_control(
                }
 
                /*
-                * Even if OWNER is set, there's no harm letting khubd
+                * Even if OWNER is set, there's no harm letting hub_wq
                 * see the wPortStatus values (they should all be 0 except
                 * for PORT_POWER anyway).
                 */
index 1cf68eaf2ed8cef5cd40ed4562a6cdf615d64095..a1a1ef5214361c87985b418bb7ced0bee64d8b07 100644 (file)
@@ -360,12 +360,12 @@ static int fhci_start(struct usb_hcd *hcd)
        hcd->state = HC_STATE_RUNNING;
 
        /*
-        * From here on, khubd concurrently accesses the root
+        * From here on, hub_wq concurrently accesses the root
         * hub; drivers will be talking to enumerated devices.
-        * (On restart paths, khubd already knows about the root
+        * (On restart paths, hub_wq already knows about the root
         * hub and could find work as soon as we wrote FLAG_CF.)
         *
-        * Before this point the HC was idle/ready.  After, khubd
+        * Before this point the HC was idle/ready.  After, hub_wq
         * and device drivers may start it running.
         */
        fhci_usb_enable(fhci);
index adcd2050dced2e1aef3f3447abc1df1fd72c45e7..3de1278677d07383e7a9054c22d3003ec0dad751 100644 (file)
@@ -1483,7 +1483,7 @@ fotg210_hub_status_data(struct usb_hcd *hcd, char *buf)
 
        /*
         * Return status information even for ports with OWNER set.
-        * Otherwise khubd wouldn't see the disconnect event when a
+        * Otherwise hub_wq wouldn't see the disconnect event when a
         * high-speed device is switched over to the companion
         * controller by the user.
         */
@@ -1572,7 +1572,7 @@ static int fotg210_hub_control(
 
                /*
                 * Even if OWNER is set, so the port is owned by the
-                * companion controller, khubd needs to be able to clear
+                * companion controller, hub_wq needs to be able to clear
                 * the port-change status bits (especially
                 * USB_PORT_STAT_C_CONNECTION).
                 */
@@ -1723,7 +1723,7 @@ static int fotg210_hub_control(
                }
 
                /*
-                * Even if OWNER is set, there's no harm letting khubd
+                * Even if OWNER is set, there's no harm letting hub_wq
                 * see the wPortStatus values (they should all be 0 except
                 * for PORT_POWER anyway).
                 */
@@ -5445,7 +5445,7 @@ static irqreturn_t fotg210_irq(struct usb_hcd *hcd)
                                fotg210->reset_done[0] == 0) {
 
                        /* start 20 msec resume signaling from this port,
-                        * and make khubd collect PORT_STAT_C_SUSPEND to
+                        * and make hub_wq collect PORT_STAT_C_SUSPEND to
                         * stop that signaling.  Use 5 ms extra for safety,
                         * like usb_port_resume() does.
                         */
index ba9499060f639c3bff934d4868ca71cfd6948bb4..abe42f31559fb25f251f1a0ca4d95a514425b794 100644 (file)
@@ -1441,7 +1441,7 @@ fusbh200_hub_status_data (struct usb_hcd *hcd, char *buf)
 
        /*
         * Return status information even for ports with OWNER set.
-        * Otherwise khubd wouldn't see the disconnect event when a
+        * Otherwise hub_wq wouldn't see the disconnect event when a
         * high-speed device is switched over to the companion
         * controller by the user.
         */
@@ -1530,7 +1530,7 @@ static int fusbh200_hub_control (
 
                /*
                 * Even if OWNER is set, so the port is owned by the
-                * companion controller, khubd needs to be able to clear
+                * companion controller, hub_wq needs to be able to clear
                 * the port-change status bits (especially
                 * USB_PORT_STAT_C_CONNECTION).
                 */
@@ -1678,7 +1678,7 @@ static int fusbh200_hub_control (
                }
 
                /*
-                * Even if OWNER is set, there's no harm letting khubd
+                * Even if OWNER is set, there's no harm letting hub_wq
                 * see the wPortStatus values (they should all be 0 except
                 * for PORT_POWER anyway).
                 */
@@ -5355,7 +5355,7 @@ static irqreturn_t fusbh200_irq (struct usb_hcd *hcd)
                                fusbh200->reset_done[0] == 0) {
 
                        /* start 20 msec resume signaling from this port,
-                        * and make khubd collect PORT_STAT_C_SUSPEND to
+                        * and make hub_wq collect PORT_STAT_C_SUSPEND to
                         * stop that signaling.  Use 5 ms extra for safety,
                         * like usb_port_resume() does.
                         */
index 51a0ae9cdd1d27ead9bac1146c257996e697dd3f..e752c3098f3803823ea2efa26ad27e7c81b42e7f 100644 (file)
@@ -1760,7 +1760,7 @@ static int isp1760_hub_status_data(struct usb_hcd *hcd, char *buf)
 
        /*
         * Return status information even for ports with OWNER set.
-        * Otherwise khubd wouldn't see the disconnect event when a
+        * Otherwise hub_wq wouldn't see the disconnect event when a
         * high-speed device is switched over to the companion
         * controller by the user.
         */
@@ -1871,7 +1871,7 @@ static int isp1760_hub_control(struct usb_hcd *hcd, u16 typeReq,
 
                /*
                 * Even if OWNER is set, so the port is owned by the
-                * companion controller, khubd needs to be able to clear
+                * companion controller, hub_wq needs to be able to clear
                 * the port-change status bits (especially
                 * USB_PORT_STAT_C_CONNECTION).
                 */
@@ -2000,7 +2000,7 @@ static int isp1760_hub_control(struct usb_hcd *hcd, u16 typeReq,
                                        reg_read32(hcd->regs, HC_PORTSC1));
                }
                /*
-                * Even if OWNER is set, there's no harm letting khubd
+                * Even if OWNER is set, there's no harm letting hub_wq
                 * see the wPortStatus values (they should all be 0 except
                 * for PORT_POWER anyway).
                 */
index 46987735a2e36483ab09742253ed389628c5a158..d664edabf14ebb36affcc72372c9ca0a0821fa90 100644 (file)
@@ -632,7 +632,7 @@ retry:
                return -EOVERFLOW;
        }
 
-       /* use rhsc irqs after khubd is fully initialized */
+       /* use rhsc irqs after hub_wq is allocated */
        set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
        hcd->uses_new_polling = 1;
 
@@ -909,8 +909,8 @@ static irqreturn_t ohci_irq (struct usb_hcd *hcd)
                 * choices for RHSC.  Many followed the spec; RHSC triggers
                 * on an edge, like setting and maybe clearing a port status
                 * change bit.  With others it's level-triggered, active
-                * until khubd clears all the port status change bits.  We'll
-                * always disable it here and rely on polling until khubd
+                * until hub_wq clears all the port status change bits.  We'll
+                * always disable it here and rely on polling until hub_wq
                 * re-enables it.
                 */
                ohci_writel(ohci, OHCI_INTR_RHSC, &regs->intrdisable);
index 17d32b0ea56583aae9d7a77a87ed0d54f82d932d..0aa17c9371151f37744708ef9a804503426a6a51 100644 (file)
@@ -585,7 +585,7 @@ static int ohci_start_port_reset (struct usb_hcd *hcd, unsigned port)
        if (!(status & RH_PS_CCS))
                return -ENODEV;
 
-       /* khubd will finish the reset later */
+       /* hub_wq will finish the reset later */
        ohci_writel(ohci, RH_PS_PRS, &ohci->regs->roothub.portstatus [port]);
        return 0;
 }
@@ -610,7 +610,7 @@ static int ohci_start_port_reset (struct usb_hcd *hcd, unsigned port)
 /* wrap-aware logic morphed from <linux/jiffies.h> */
 #define tick_before(t1,t2) ((s16)(((s16)(t1))-((s16)(t2))) < 0)
 
-/* called from some task, normally khubd */
+/* called from some task, normally hub_wq */
 static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port)
 {
        __hc32 __iomem *portstat = &ohci->regs->roothub.portstatus [port];
index c923cafcaca76bc5fa7cf918fd3e62e43b7caff9..de9428362503b015c929e4f1e80c73cdb5d24eda 100644 (file)
@@ -283,7 +283,7 @@ static int ohci_omap_reset(struct usb_hcd *hcd)
                ohci_to_hcd(ohci)->power_budget = 0;
        }
 
-       /* FIXME khubd hub requests should manage power switching */
+       /* FIXME hub_wq hub requests should manage power switching */
        omap_ohci_transceiver_power(1);
 
        /* board init will have already handled HMC and mux setup.
index da5fb0e3c3635c5cef3ab377838741cdb0ed14ea..4fe79a2d71a969e23ffa56d1a48e5c1268428926 100644 (file)
@@ -2046,7 +2046,7 @@ static void intr_deschedule(struct oxu_hcd *oxu, struct ehci_qh *qh)
 
        /* simple/paranoid:  always delay, expecting the HC needs to read
         * qh->hw_next or finish a writeback after SPLIT/CSPLIT ... and
-        * expect khubd to clean up after any CSPLITs we won't issue.
+        * expect hub_wq to clean up after any CSPLITs we won't issue.
         * active high speed queues may need bigger delays...
         */
        if (list_empty(&qh->qtd_list)
@@ -2501,7 +2501,7 @@ static irqreturn_t oxu210_hcd_irq(struct usb_hcd *hcd)
                                continue;
 
                        /* start 20 msec resume signaling from this port,
-                        * and make khubd collect PORT_STAT_C_SUSPEND to
+                        * and make hub_wq collect PORT_STAT_C_SUSPEND to
                         * stop that signaling.
                         */
                        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)
 
                /*
                 * Return status information even for ports with OWNER set.
-                * Otherwise khubd wouldn't see the disconnect event when a
+                * Otherwise hub_wq wouldn't see the disconnect event when a
                 * high-speed device is switched over to the companion
                 * controller by the user.
                 */
@@ -3194,7 +3194,7 @@ static int oxu_hub_control(struct usb_hcd *hcd, u16 typeReq,
 
                /*
                 * Even if OWNER is set, so the port is owned by the
-                * companion controller, khubd needs to be able to clear
+                * companion controller, hub_wq needs to be able to clear
                 * the port-change status bits (especially
                 * USB_PORT_STAT_C_CONNECTION).
                 */
@@ -3336,7 +3336,7 @@ static int oxu_hub_control(struct usb_hcd *hcd, u16 typeReq,
                }
 
                /*
-                * Even if OWNER is set, there's no harm letting khubd
+                * Even if OWNER is set, there's no harm letting hub_wq
                 * see the wPortStatus values (they should all be 0 except
                 * for PORT_POWER anyway).
                 */
index a517151867af33a0d62f57ed9674c1a0e6777654..ad0c348e68e98ee27b0ba0d6fabd4a1eb610e348 100644 (file)
@@ -674,7 +674,7 @@ retry:
                        sl811->next_periodic = sl811->periodic[index];
        }
 
-       /* khubd manages debouncing and wakeup */
+       /* hub_wq manages debouncing and wakeup */
        if (irqstat & SL11H_INTMASK_INSRMV) {
                sl811->stat_insrmv++;
 
@@ -714,7 +714,7 @@ retry:
 #endif
 
                /* port status seems weird until after reset, so
-                * force the reset and make khubd clean up later.
+                * force the reset and make hub_wq clean up later.
                 */
                if (irqstat & SL11H_INTMASK_RD)
                        sl811->port1 &= ~USB_PORT_STAT_CONNECTION;
@@ -1079,7 +1079,7 @@ sl811h_hub_status_data(struct usb_hcd *hcd, char *buf)
        if (!(sl811->port1 & (0xffff << 16)))
                return 0;
 
-       /* tell khubd port 1 changed */
+       /* tell hub_wq port 1 changed */
        *buf = (1 << 1);
        return 1;
 }
@@ -1196,7 +1196,7 @@ sl811h_timer(unsigned long _sl811)
                sl811_write(sl811, SL811_EP_A(SL11H_HOSTCTLREG),
                                SL11H_HCTLMASK_ARM);
 
-               /* khubd provides debounce delay */
+               /* hub_wq provides debounce delay */
        } else {
                sl811->ctrl1 = 0;
        }
index 5e9f9bd0233595fb85400715997dd6577a19e73b..696160d48ae8521651f4f313ee9998288c245ab4 100644 (file)
@@ -899,7 +899,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
                        /*
                         * Turn on ports, even if there isn't per-port switching.
                         * HC will report connect events even before this is set.
-                        * However, khubd will ignore the roothub events until
+                        * However, hub_wq will ignore the roothub events until
                         * the roothub is registered.
                         */
                        writel(temp | PORT_POWER, port_array[wIndex]);
index 6ad16483da54b247d4ff6c38310de85551c0739c..a4b89b9d664143403befe2b162fd7e3b987ff231 100644 (file)
@@ -3760,8 +3760,8 @@ disable_slot:
 /*
  * Issue an Address Device command and optionally send a corresponding
  * SetAddress request to the device.
- * We should be protected by the usb_address0_mutex in khubd's hub_port_init, so
- * we should only issue and wait on one address command at the same time.
+ * We should be protected by the usb_address0_mutex in hub_wq's hub_port_init,
+ * so we should only issue and wait on one address command at the same time.
  */
 static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev,
                             enum xhci_setup_dev setup)
index 90e6644dc8869a5546ce15615c42468232a73f8e..0bbafe795a724bf2d7dfff846afe44e37aef242c 100644 (file)
@@ -2031,7 +2031,7 @@ static int test_unaligned_bulk(
  *
  * WARNING:  Because usbfs grabs udev->dev.sem before calling this ioctl(),
  * it locks out usbcore in certain code paths.  Notably, if you disconnect
- * the device-under-test, khubd will wait block forever waiting for the
+ * the device-under-test, hub_wq will wait block forever waiting for the
  * ioctl to complete ... so that usb_disconnect() can abort the pending
  * urbs and then call usbtest_disconnect().  To abort a test, you're best
  * off just killing the userspace task and waiting for it to exit.
index 0a34dd8595554f4ddc4d543d6817f986a272d049..a2735df24cc65353cd17643ce2972ad69e179661 100644 (file)
@@ -1,3 +1,4 @@
+
 /*
  * Texas Instruments AM35x "glue layer"
  *
index 7dfc6cb732c9f8c0da3b975eec55b9125ae21d2c..2daa779f138230ed8e48cb69f7bcc3b8ccc146b6 100644 (file)
@@ -433,7 +433,7 @@ static void musb_do_idle(unsigned long _musb)
        if (!musb->is_active) {
                u32     wakeups;
 
-               /* wait until khubd handles port change status */
+               /* wait until hub_wq handles port change status */
                if (is_host_active(musb) && (musb->port1_status >> 16))
                        goto done;
 
index 2b0f968d932537d10d165584c855eb7c769508cb..f1ea5990a50a1436d856537131bde075515f8db7 100644 (file)
@@ -609,7 +609,7 @@ static int fsl_otg_set_host(struct usb_otg *otg, struct usb_bus *host)
                otg->host->otg_port = fsl_otg_initdata.otg_port;
                otg->host->is_b_host = otg_dev->fsm.id;
                /*
-                * must leave time for khubd to finish its thing
+                * must leave time for hub_wq to finish its thing
                 * before yanking the host driver out from under it,
                 * so suspend the host after a short delay.
                 */
index 69e49be8866bc00a974ba324718aef15996494b3..8eea56d3ded6deff1f361ed5fd3ac78208eb42d2 100644 (file)
@@ -1011,7 +1011,7 @@ static void isp_update_otg(struct isp1301 *isp, u8 stat)
                                break;
                        case OTG_STATE_A_WAIT_VFALL:
                                state = OTG_STATE_A_IDLE;
-                               /* khubd may take a while to notice and
+                               /* hub_wq may take a while to notice and
                                 * handle this disconnect, so don't go
                                 * to B_IDLE quite yet.
                                 */
index 0677139c60654e1a350bce46f7f9e28634e87105..3f4f5fbded55bedeb25dabe6c820388b44969752 100644 (file)
@@ -329,7 +329,7 @@ void wusbhc_devconnect_ack(struct wusbhc *wusbhc, struct wusb_dn_connect *dnc,
        port->wusb_dev = wusb_dev;
        port->status |= USB_PORT_STAT_CONNECTION;
        port->change |= USB_PORT_STAT_C_CONNECTION;
-       /* Now the port status changed to connected; khubd will
+       /* Now the port status changed to connected; hub_wq will
         * pick the change up and try to reset the port to bring it to
         * the enabled state--so this process returns up to the stack
         * and it calls back into wusbhc_rh_port_reset().
@@ -343,7 +343,7 @@ error_unlock:
 /*
  * Disconnect a Wireless USB device from its fake port
  *
- * Marks the port as disconnected so that khubd can pick up the change
+ * Marks the port as disconnected so that hub_wq can pick up the change
  * and drops our knowledge about the device.
  *
  * Assumes there is a device connected
@@ -379,7 +379,7 @@ static void __wusbhc_dev_disconnect(struct wusbhc *wusbhc,
                wusbhc_gtk_rekey(wusbhc);
 
        /* The Wireless USB part has forgotten about the device already; now
-        * khubd's timer will pick up the disconnection and remove the USB
+        * hub_wq's timer will pick up the disconnection and remove the USB
         * device from the system
         */
 }
index f2a8d29e17b9ad4eb2d29b6bc034ca438fe6d6f1..edc7267157f3d06ec74f5f11767e20e3ee75a8e4 100644 (file)
@@ -64,7 +64,7 @@
  *
  * Note much of the activity is difficult to follow. For example a
  * device connect goes to devconnect, which will cause the "fake" root
- * hub port to show a connect and stop there. Then khubd will notice
+ * hub port to show a connect and stop there. Then hub_wq will notice
  * and call into the rh.c:hwahc_rc_port_reset() code to authenticate
  * the device (and this might require user intervention) and enable
  * the port.
index 7b166c2be0f77a80a822d4597acf09f19659bf4b..b2b6f398a4e1dfcc349bc71ef25cf060f59b1d4c 100644 (file)
@@ -64,7 +64,7 @@
 /* #define DUMP_PACKETS */
 
 /*
- * how long to wait after some USB errors, so that khubd can disconnect() us
+ * how long to wait after some USB errors, so that hub_wq can disconnect() us
  * without too many spurious errors
  */
 #define ERROR_DELAY_JIFFIES (HZ / 10)