]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/usb/core/hcd.c
usb: define HCD_USB31 speed option for hosts that support USB 3.1 features
[karo-tx-linux.git] / drivers / usb / core / hcd.c
index 86b3d11905000bf4d248dea9bfd989eeea589574..a02d3e68476e3d3c01d3107aa9ba3886c974b0af 100644 (file)
@@ -555,6 +555,7 @@ static int rh_call_control (struct usb_hcd *hcd, struct urb *urb)
                switch (wValue & 0xff00) {
                case USB_DT_DEVICE << 8:
                        switch (hcd->speed) {
+                       case HCD_USB31:
                        case HCD_USB3:
                                bufp = usb3_rh_dev_descriptor;
                                break;
@@ -576,6 +577,7 @@ static int rh_call_control (struct usb_hcd *hcd, struct urb *urb)
                        break;
                case USB_DT_CONFIG << 8:
                        switch (hcd->speed) {
+                       case HCD_USB31:
                        case HCD_USB3:
                                bufp = ss_rh_config_descriptor;
                                len = sizeof ss_rh_config_descriptor;
@@ -2775,6 +2777,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
                rhdev->speed = USB_SPEED_WIRELESS;
                break;
        case HCD_USB3:
+       case HCD_USB31:
                rhdev->speed = USB_SPEED_SUPER;
                break;
        default: