usbcore: suspending devices with no driver
authorAlan Stern <stern@rowland.harvard.edu>
Sun, 2 Jul 2006 02:13:50 +0000 (22:13 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:50 +0000 (11:58 -0700)
commit1c5df7e705671f11a71112eb3a1f9765cd1719f9
tree40fcbab03d1c70fca992896feda057577edda5f2
parent114b368c07964caa3f4e1fa575b16e87fa11936c
usbcore: suspending devices with no driver

Since usb_generic can be unbound from a USB device, we need to be able
to handle the possibility that a suspend or resume request arrives for a
device with no driver.  This patch (as735) arranges things so that
resume requests will fail and suspend requests will use the standard USB
port-suspend code.  Attempts to suspend or resume an unbound interface
are handled similarly (although the error caused by trying to resume an
unbound interface is dropped by the calling routine).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c