diff options
Diffstat (limited to 'include/linux/usb.h')
| -rw-r--r-- | include/linux/usb.h | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 4d22d0f6167..a0bee5a28d1 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -469,14 +469,12 @@ struct usb3_lpm_parameters {   * @lpm_capable: device supports LPM   * @usb2_hw_lpm_capable: device can perform USB2 hardware LPM   * @usb2_hw_lpm_enabled: USB2 hardware LPM enabled + * @usb3_lpm_enabled: USB3 hardware LPM enabled   * @string_langid: language ID for strings   * @product: iProduct string, if present (static)   * @manufacturer: iManufacturer string, if present (static)   * @serial: iSerialNumber string, if present (static)   * @filelist: usbfs files that are open to this device - * @usb_classdev: USB class device that was created for usbfs device - *	access from userspace - * @usbfs_dentry: usbfs dentry entry for the device   * @maxchild: number of ports if hub   * @quirks: quirks of the whole device   * @urbnum: number of URBs submitted for the whole device @@ -619,7 +617,7 @@ static inline bool usb_acpi_power_manageable(struct usb_device *hdev, int index)  #endif  /* USB autosuspend and autoresume */ -#ifdef CONFIG_USB_SUSPEND +#ifdef CONFIG_PM_RUNTIME  extern void usb_enable_autosuspend(struct usb_device *udev);  extern void usb_disable_autosuspend(struct usb_device *udev); @@ -978,7 +976,12 @@ struct usbdrv_wrap {   *	the "usbfs" filesystem.  This lets devices provide ways to   *	expose information to user space regardless of where they   *	do (or don't) show up otherwise in the filesystem. - * @suspend: Called when the device is going to be suspended by the system. + * @suspend: Called when the device is going to be suspended by the + *	system either from system sleep or runtime suspend context. The + *	return value will be ignored in system sleep context, so do NOT + *	try to continue using the device if suspend fails in this case. + *	Instead, let the resume or reset-resume routine recover from + *	the failure.   * @resume: Called when the device is being resumed by the system.   * @reset_resume: Called when the suspended device has been reset instead   *	of being resumed.  |