diff options
author | Andiry Xu <andiry.xu@amd.com> | 2011-12-12 03:45:28 -0500 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-03-12 12:31:24 -0400 |
commit | f99298bfa7c42da8d27c2b42050941471c0866ab (patch) | |
tree | 3e41bfc8effe612b9626ea2011e6b37b9bc6b0d5 /include/linux/usb | |
parent | f7a0d426f3e7ec321b8037238b6426566df36edb (diff) |
xHCI: BESL calculation based on USB2.0 LPM errata
The latest released errata for USB2.0 ECN LPM adds new fields to USB2.0
extension descriptor, defines two BESL values for device: baseline BESL
and deep BESL. Baseline BESL value communicates a nominal power savings
design point and the deep BESL value communicates a significant power
savings design point.
If device indicates BESL value, driver will use a value count in both
host BESL and device BESL. Use baseline BESL value as default.
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Tested-by: Jason Fan <jcfan@qca.qualcomm.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ch9.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 3b6f628880f8..af21f3115919 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
@@ -789,6 +789,11 @@ struct usb_ext_cap_descriptor { /* Link Power Management */ | |||
789 | __u8 bDevCapabilityType; | 789 | __u8 bDevCapabilityType; |
790 | __le32 bmAttributes; | 790 | __le32 bmAttributes; |
791 | #define USB_LPM_SUPPORT (1 << 1) /* supports LPM */ | 791 | #define USB_LPM_SUPPORT (1 << 1) /* supports LPM */ |
792 | #define USB_BESL_SUPPORT (1 << 2) /* supports BESL */ | ||
793 | #define USB_BESL_BASELINE_VALID (1 << 3) /* Baseline BESL valid*/ | ||
794 | #define USB_BESL_DEEP_VALID (1 << 4) /* Deep BESL valid */ | ||
795 | #define USB_GET_BESL_BASELINE(p) (((p) & (0xf << 8)) >> 8) | ||
796 | #define USB_GET_BESL_DEEP(p) (((p) & (0xf << 12)) >> 12) | ||
792 | } __attribute__((packed)); | 797 | } __attribute__((packed)); |
793 | 798 | ||
794 | #define USB_DT_USB_EXT_CAP_SIZE 7 | 799 | #define USB_DT_USB_EXT_CAP_SIZE 7 |