]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: don't enable remote wakeup by default
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 2 Apr 2010 17:21:33 +0000 (13:21 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:10 +0000 (15:55 -0700)
commit 7aba8d014341341590ecb64050b7a026642a62eb upstream.

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 <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c

index 33ca9269452856bbb651d766229689d082dc1e18..283f019b9b3a12327d5a22ab3f684ce1d4c32de7 100644 (file)
@@ -1795,7 +1795,6 @@ int usb_new_device(struct usb_device *udev)
                 * sysfs power/wakeup controls wakeup enabled/disabled
                 */
                device_init_wakeup(&udev->dev, 0);
-               device_set_wakeup_enable(&udev->dev, 1);
        }
 
        err = usb_enumerate_device(udev);       /* Read descriptors */