aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2011-09-23 17:19:48 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-26 18:51:08 -0400
commit1ff4df56846d10379939166713bb2908e6a5ee0e (patch)
treea2cacc55c0496016be4a44f72b96a0717ba91948 /include/linux/usb.h
parent3148bf041d169a083aa31bd69bedd5bfb7ffe215 (diff)
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 90ab9dc1f080..1d00d9bc5d65 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -410,6 +410,7 @@ struct usb_tt;
410 * FIXME -- complete doc 410 * FIXME -- complete doc
411 * @authenticated: Crypto authentication passed 411 * @authenticated: Crypto authentication passed
412 * @wusb: device is Wireless USB 412 * @wusb: device is Wireless USB
413 * @lpm_capable: device supports LPM
413 * @string_langid: language ID for strings 414 * @string_langid: language ID for strings
414 * @product: iProduct string, if present (static) 415 * @product: iProduct string, if present (static)
415 * @manufacturer: iManufacturer string, if present (static) 416 * @manufacturer: iManufacturer string, if present (static)
@@ -472,6 +473,7 @@ struct usb_device {
472 unsigned authorized:1; 473 unsigned authorized:1;
473 unsigned authenticated:1; 474 unsigned authenticated:1;
474 unsigned wusb:1; 475 unsigned wusb:1;
476 unsigned lpm_capable:1;
475 int string_langid; 477 int string_langid;
476 478
477 /* static strings from the device */ 479 /* static strings from the device */