Blob Blame History Raw
From 50c3f2680f910216492622858884acd5f1eba9d9 Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <kraxel@redhat.com>
Date: Wed, 2 Oct 2013 07:00:16 +0200
Subject: [PATCH 4/8] uas: add (temporary) superspeed stopgap

RH-Author: Gerd Hoffmann <kraxel@redhat.com>
Message-id: <1380697219-1860-5-git-send-email-kraxel@redhat.com>
Patchwork-id: 54630
O-Subject: [RHEL-7 seabios PATCH 4/7] uas: add (temporary) superspeed stopgap
Bugzilla: 947051
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
RH-Acked-by: Bandan Das <bsd@redhat.com>
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ee9b84f61c55a67b477a019e937460be13ccbfa1)
---
 src/usb-uas.c | 4 ++++
 src/usb.h     | 1 +
 2 files changed, 5 insertions(+)

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
---
 src/usb-uas.c |    4 ++++
 src/usb.h     |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/usb-uas.c b/src/usb-uas.c
index be153ed..2133c0e 100644
--- a/src/usb-uas.c
+++ b/src/usb-uas.c
@@ -220,6 +220,10 @@ usb_uas_init(struct usbdevice_s *usbdev)
         case USB_DT_ENDPOINT:
             ep = (void*)desc;
             break;
+        case USB_DT_ENDPOINT_COMPANION:
+            /* No support (yet) for usb3 streams */
+            dprintf(1, "Superspeed UAS devices not supported (yet)\n");
+            goto fail;
         case 0x24:
             switch (desc[2]) {
             case UAS_PIPE_ID_COMMAND:
diff --git a/src/usb.h b/src/usb.h
index a43e829..d9eadd7 100644
--- a/src/usb.h
+++ b/src/usb.h
@@ -130,6 +130,7 @@ struct usb_ctrlrequest {
 #define USB_DT_ENDPOINT                 0x05
 #define USB_DT_DEVICE_QUALIFIER         0x06
 #define USB_DT_OTHER_SPEED_CONFIG       0x07
+#define USB_DT_ENDPOINT_COMPANION       0x30
 
 struct usb_device_descriptor {
     u8  bLength;
-- 
1.7.1