aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/hcd.c3
-rw-r--r--include/linux/usb/hcd.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 6241d32c5ba7..5a799f84dcc2 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -567,6 +567,7 @@ static int rh_call_control (struct usb_hcd *hcd, struct urb *urb)
567 switch (wValue & 0xff00) { 567 switch (wValue & 0xff00) {
568 case USB_DT_DEVICE << 8: 568 case USB_DT_DEVICE << 8:
569 switch (hcd->speed) { 569 switch (hcd->speed) {
570 case HCD_USB32:
570 case HCD_USB31: 571 case HCD_USB31:
571 bufp = usb31_rh_dev_descriptor; 572 bufp = usb31_rh_dev_descriptor;
572 break; 573 break;
@@ -591,6 +592,7 @@ static int rh_call_control (struct usb_hcd *hcd, struct urb *urb)
591 break; 592 break;
592 case USB_DT_CONFIG << 8: 593 case USB_DT_CONFIG << 8:
593 switch (hcd->speed) { 594 switch (hcd->speed) {
595 case HCD_USB32:
594 case HCD_USB31: 596 case HCD_USB31:
595 case HCD_USB3: 597 case HCD_USB3:
596 bufp = ss_rh_config_descriptor; 598 bufp = ss_rh_config_descriptor;
@@ -2804,6 +2806,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
2804 case HCD_USB3: 2806 case HCD_USB3:
2805 rhdev->speed = USB_SPEED_SUPER; 2807 rhdev->speed = USB_SPEED_SUPER;
2806 break; 2808 break;
2809 case HCD_USB32:
2807 case HCD_USB31: 2810 case HCD_USB31:
2808 rhdev->speed = USB_SPEED_SUPER_PLUS; 2811 rhdev->speed = USB_SPEED_SUPER_PLUS;
2809 break; 2812 break;
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index e33009c77840..34a6ded6f319 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -260,6 +260,7 @@ struct hc_driver {
260#define HCD_USB25 0x0030 /* Wireless USB 1.0 (USB 2.5)*/ 260#define HCD_USB25 0x0030 /* Wireless USB 1.0 (USB 2.5)*/
261#define HCD_USB3 0x0040 /* USB 3.0 */ 261#define HCD_USB3 0x0040 /* USB 3.0 */
262#define HCD_USB31 0x0050 /* USB 3.1 */ 262#define HCD_USB31 0x0050 /* USB 3.1 */
263#define HCD_USB32 0x0060 /* USB 3.2 */
263#define HCD_MASK 0x0070 264#define HCD_MASK 0x0070
264#define HCD_BH 0x0100 /* URB complete in BH context */ 265#define HCD_BH 0x0100 /* URB complete in BH context */
265 266