diff options
Diffstat (limited to 'drivers/usb/core/hub.h')
-rw-r--r-- | drivers/usb/core/hub.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h index 45d070dd1d03..34c1a7e22aae 100644 --- a/drivers/usb/core/hub.h +++ b/drivers/usb/core/hub.h | |||
@@ -140,6 +140,13 @@ static inline int hub_is_superspeed(struct usb_device *hdev) | |||
140 | return hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS; | 140 | return hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS; |
141 | } | 141 | } |
142 | 142 | ||
143 | static inline int hub_is_superspeedplus(struct usb_device *hdev) | ||
144 | { | ||
145 | return (hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS && | ||
146 | le16_to_cpu(hdev->descriptor.bcdUSB) >= 0x0310 && | ||
147 | hdev->bos->ssp_cap); | ||
148 | } | ||
149 | |||
143 | static inline unsigned hub_power_on_good_delay(struct usb_hub *hub) | 150 | static inline unsigned hub_power_on_good_delay(struct usb_hub *hub) |
144 | { | 151 | { |
145 | unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2; | 152 | unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2; |