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>
This commit is contained in:
parent
3148bf041d
commit
1ff4df5684
2 changed files with 10 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue