diff options
author | Andiry Xu <andiry.xu@amd.com> | 2011-09-23 14:19:48 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-26 15:51:08 -0700 |
commit | 1ff4df56846d10379939166713bb2908e6a5ee0e (patch) | |
tree | a2cacc55c0496016be4a44f72b96a0717ba91948 /include/linux/usb.h | |
parent | 3148bf041d169a083aa31bd69bedd5bfb7ffe215 (diff) | |
download | op-kernel-dev-1ff4df56846d10379939166713bb2908e6a5ee0e.zip op-kernel-dev-1ff4df56846d10379939166713bb2908e6a5ee0e.tar.gz |
usbcore: check device's LPM capability
Check device's LPM capability by examining the bmAttibutes field of the
USB2.0 Extension Descriptor.
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 90ab9dc..1d00d9bc 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -410,6 +410,7 @@ struct usb_tt; * FIXME -- complete doc * @authenticated: Crypto authentication passed * @wusb: device is Wireless USB + * @lpm_capable: device supports LPM * @string_langid: language ID for strings * @product: iProduct string, if present (static) * @manufacturer: iManufacturer string, if present (static) @@ -472,6 +473,7 @@ struct usb_device { unsigned authorized:1; unsigned authenticated:1; unsigned wusb:1; + unsigned lpm_capable:1; int string_langid; /* static strings from the device */ |