aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/usb.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-08-12 14:34:10 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-08-21 10:26:37 -0700
commitf2189c477c986db47ac7f9cc32d05f6df18bfe9e (patch)
tree7a6e20c8bea0876aa7c4eb17451d627e5839ce83 /drivers/usb/core/usb.h
parent55151d7daba185f94e9dc561a5a2ba36b5f647dd (diff)
downloadkernel_samsung_espresso10-f2189c477c986db47ac7f9cc32d05f6df18bfe9e.zip
kernel_samsung_espresso10-f2189c477c986db47ac7f9cc32d05f6df18bfe9e.tar.gz
kernel_samsung_espresso10-f2189c477c986db47ac7f9cc32d05f6df18bfe9e.tar.bz2
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>
Diffstat (limited to 'drivers/usb/core/usb.h')
-rw-r--r--drivers/usb/core/usb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h
index d9a6e16..9a1a45a 100644
--- a/drivers/usb/core/usb.h
+++ b/drivers/usb/core/usb.h
@@ -41,6 +41,9 @@ extern void usb_host_cleanup(void);
#ifdef CONFIG_PM
+extern int usb_suspend(struct device *dev, pm_message_t msg);
+extern int usb_resume(struct device *dev);
+
extern void usb_autosuspend_work(struct work_struct *work);
extern int usb_port_suspend(struct usb_device *dev);
extern int usb_port_resume(struct usb_device *dev);