@@ -652,7 +652,7 @@ static void hub_irq(struct urb *urb)
652652 hub -> error = status ;
653653 /* FALL THROUGH */
654654
655- /* let khubd handle things */
655+ /* let hub_wq handle things */
656656 case 0 : /* we got data: port status changed */
657657 bits = 0 ;
658658 for (i = 0 ; i < urb -> actual_length ; ++ i )
@@ -664,7 +664,7 @@ static void hub_irq(struct urb *urb)
664664
665665 hub -> nerrors = 0 ;
666666
667- /* Something happened, let khubd figure it out */
667+ /* Something happened, let hub_wq figure it out */
668668 kick_hub_wq (hub );
669669
670670resubmit :
@@ -695,7 +695,7 @@ hub_clear_tt_buffer (struct usb_device *hdev, u16 devinfo, u16 tt)
695695}
696696
697697/*
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
699699 * long blocking there is the exception, not the rule. accordingly, HCDs
700700 * talking to TTs must queue control transfers (not just bulk and iso), so
701701 * 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)
961961
962962/*
963963 * 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
965965 * and will re-enumerate if there actually is a device attached.
966966 */
967967static 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)
974974 * - SRP saves power that way
975975 * - ... new call, TBD ...
976976 * 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).
978978 * Powerdown must be optional, because of reset/DFU.
979979 */
980980
@@ -987,7 +987,7 @@ static void hub_port_logical_disconnect(struct usb_hub *hub, int port1)
987987 * @udev: device to be disabled and removed
988988 * Context: @udev locked, must be able to sleep.
989989 *
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
991991 * see that the device has been disconnected. When the device is
992992 * physically unplugged and something is plugged in, the events will
993993 * be received and processed normally.
@@ -1107,7 +1107,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
11071107 init2 :
11081108
11091109 /*
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
11111111 * which ports need attention.
11121112 */
11131113 for (port1 = 1 ; port1 <= hdev -> maxchild ; ++ port1 ) {
@@ -1174,7 +1174,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
11741174 clear_bit (port1 , hub -> removed_bits );
11751175
11761176 if (!udev || udev -> state == USB_STATE_NOTATTACHED ) {
1177- /* Tell khubd to disconnect the device or
1177+ /* Tell hub_wq to disconnect the device or
11781178 * check for a new connection
11791179 */
11801180 if (udev || (portstatus & USB_PORT_STAT_CONNECTION ) ||
@@ -1187,7 +1187,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
11871187 USB_SS_PORT_LS_U0 ;
11881188 /* The power session apparently survived the resume.
11891189 * 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
11911191 * take care of it. Look at the port link state
11921192 * for USB 3.0 hubs, since they don't have a suspend
11931193 * change bit, and they don't set the port link change
@@ -1208,18 +1208,18 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
12081208 set_bit (port1 , hub -> change_bits );
12091209
12101210 } else {
1211- /* The power session is gone; tell khubd */
1211+ /* The power session is gone; tell hub_wq */
12121212 usb_set_device_state (udev , USB_STATE_NOTATTACHED );
12131213 set_bit (port1 , hub -> change_bits );
12141214 }
12151215 }
12161216
12171217 /* If no port-status-change flags were set, we don't need any
12181218 * 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
12201220 * one at a time later on.
12211221 *
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
12231223 * will see them later and handle them normally.
12241224 */
12251225 if (need_debounce_delay ) {
@@ -1280,7 +1280,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
12801280
12811281 cancel_delayed_work_sync (& hub -> init_work );
12821282
1283- /* khubd and related activity won't re-trigger */
1283+ /* hub_wq and related activity won't re-trigger */
12841284 hub -> quiescing = 1 ;
12851285
12861286 if (type != HUB_SUSPEND ) {
@@ -1291,7 +1291,7 @@ static void hub_quiesce(struct usb_hub *hub, enum hub_quiescing_type type)
12911291 }
12921292 }
12931293
1294- /* Stop khubd and related activity */
1294+ /* Stop hub_wq and related activity */
12951295 usb_kill_urb (hub -> urb );
12961296 if (hub -> has_indicators )
12971297 cancel_delayed_work_sync (& hub -> leds );
@@ -1613,7 +1613,7 @@ static int hub_configure(struct usb_hub *hub,
16131613 if (ret < 0 )
16141614 goto fail ;
16151615
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
16171617 * starts getting port status changes for devices under the hub.
16181618 */
16191619 if (hcd -> driver -> update_hub_device ) {
@@ -2045,7 +2045,7 @@ static void choose_devnum(struct usb_device *udev)
20452045 int devnum ;
20462046 struct usb_bus * bus = udev -> bus ;
20472047
2048- /* If khubd ever becomes multithreaded, this will need a lock */
2048+ /* If hub_wq ever becomes multithreaded, this will need a lock */
20492049 if (udev -> wusb ) {
20502050 devnum = udev -> portnum + 1 ;
20512051 BUG_ON (test_bit (devnum , bus -> devmap .devicemap ));
@@ -3074,7 +3074,7 @@ static unsigned wakeup_enabled_descendants(struct usb_device *udev)
30743074 * Once VBUS drop breaks the circuit, the port it's using has to go through
30753075 * normal re-enumeration procedures, starting with enabling VBUS power.
30763076 * 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
30783078 * timer, no SRP, no requests through sysfs.
30793079 *
30803080 * 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)
32163216 /* usb ch9 identifies four variants of SUSPENDED, based on what
32173217 * state the device resumes to. Linux currently won't see the
32183218 * 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.
32203220 */
32213221 usb_set_device_state (udev , udev -> actconfig
32223222 ? USB_STATE_CONFIGURED
@@ -3581,7 +3581,7 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
35813581
35823582 dev_dbg (& intf -> dev , "%s\n" , __func__ );
35833583
3584- /* stop khubd and related activity */
3584+ /* stop hub_wq and related activity */
35853585 hub_quiesce (hub , HUB_SUSPEND );
35863586 return 0 ;
35873587}
@@ -4977,10 +4977,10 @@ static void port_event(struct usb_hub *hub, int port1)
49774977 * On disconnect USB3 protocol ports transit from U0 to
49784978 * SS.Inactive to Rx.Detect. If this happens a warm-
49794979 * 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
49814981 * device may be an unknown state.
49824982 *
4983- * If the port went through SS.Inactive without khubd
4983+ * If the port went through SS.Inactive without hub_wq
49844984 * seeing it the C_LINK_STATE change flag will be set,
49854985 * and we reset the dev to put it in a known state.
49864986 */
@@ -5290,7 +5290,7 @@ static int descriptors_changed(struct usb_device *udev,
52905290 * former operating configuration. If the reset fails, or the device's
52915291 * descriptors change from their values before the reset, or the original
52925292 * 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
52945294 * re-connected. All drivers will be unbound, and the device will be
52955295 * re-enumerated and probed all over again.
52965296 *
0 commit comments