Skip to content

Commit 7aba8d0

Browse files
AlanSterngregkh
authored andcommitted
USB: don't enable remote wakeup by default
This patch (as1364) avoids enabling remote wakeup by default on all non-root-hub USB devices. Individual drivers or userspace will have to enable it wherever it is needed, such as for keyboards or network interfaces. Note: This affects only system sleep, not autosuspend. External hubs will continue to relay wakeup requests received from downstream through their upstream port, even when remote wakeup is not enabled for the hub itself. Disabling remote wakeup on a hub merely prevents it from generating wakeup requests in response to connect, disconnect, and overcurrent events. Signed-off-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7560d32 commit 7aba8d0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/usb/core/hub.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,6 @@ int usb_new_device(struct usb_device *udev)
17831783
* sysfs power/wakeup controls wakeup enabled/disabled
17841784
*/
17851785
device_init_wakeup(&udev->dev, 0);
1786-
device_set_wakeup_enable(&udev->dev, 1);
17871786
}
17881787

17891788
/* Tell the runtime-PM framework the device is active */

0 commit comments

Comments
 (0)