]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Add new PM callback methods for USB
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 12 Aug 2008 18:34:10 +0000 (14:34 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Aug 2008 17:26:37 +0000 (10:26 -0700)
commit5d7d1b36779f6d5aded8f3fadbf178ca831c3e4c
tree7a6e20c8bea0876aa7c4eb17451d627e5839ce83
parenta47aed49fea1289973f0e464ee286281a35de91b
USB: Add new PM callback methods for USB

This patch (as1129) adds support for the new PM callbacks to usbcore.
The new callbacks merely invoke the same old USB power management
routines as the old ones did.

A minor improvement is that the callbacks are present only in the
"USB-device" device_type structure, rather than in the bus_type
structure.  This way they will be invoked only for USB devices, not
for USB interfaces.  The core USB PM routines automatically handle
suspending and resuming interfaces along with their devices.

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