Blame SOURCES/seabios-uas-add-temporary-superspeed-stopgap.patch

867c1e
From 50c3f2680f910216492622858884acd5f1eba9d9 Mon Sep 17 00:00:00 2001
867c1e
From: Gerd Hoffmann <kraxel@redhat.com>
867c1e
Date: Wed, 2 Oct 2013 07:00:16 +0200
867c1e
Subject: [PATCH 4/8] uas: add (temporary) superspeed stopgap
867c1e
867c1e
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
867c1e
Message-id: <1380697219-1860-5-git-send-email-kraxel@redhat.com>
867c1e
Patchwork-id: 54630
867c1e
O-Subject: [RHEL-7 seabios PATCH 4/7] uas: add (temporary) superspeed stopgap
867c1e
Bugzilla: 947051
867c1e
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
867c1e
RH-Acked-by: Bandan Das <bsd@redhat.com>
867c1e
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
867c1e
867c1e
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
867c1e
(cherry picked from commit ee9b84f61c55a67b477a019e937460be13ccbfa1)
867c1e
---
867c1e
 src/usb-uas.c | 4 ++++
867c1e
 src/usb.h     | 1 +
867c1e
 2 files changed, 5 insertions(+)
867c1e
867c1e
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
867c1e
---
867c1e
 src/usb-uas.c |    4 ++++
867c1e
 src/usb.h     |    1 +
867c1e
 2 files changed, 5 insertions(+), 0 deletions(-)
867c1e
867c1e
diff --git a/src/usb-uas.c b/src/usb-uas.c
867c1e
index be153ed..2133c0e 100644
867c1e
--- a/src/usb-uas.c
867c1e
+++ b/src/usb-uas.c
867c1e
@@ -220,6 +220,10 @@ usb_uas_init(struct usbdevice_s *usbdev)
867c1e
         case USB_DT_ENDPOINT:
867c1e
             ep = (void*)desc;
867c1e
             break;
867c1e
+        case USB_DT_ENDPOINT_COMPANION:
867c1e
+            /* No support (yet) for usb3 streams */
867c1e
+            dprintf(1, "Superspeed UAS devices not supported (yet)\n");
867c1e
+            goto fail;
867c1e
         case 0x24:
867c1e
             switch (desc[2]) {
867c1e
             case UAS_PIPE_ID_COMMAND:
867c1e
diff --git a/src/usb.h b/src/usb.h
867c1e
index a43e829..d9eadd7 100644
867c1e
--- a/src/usb.h
867c1e
+++ b/src/usb.h
867c1e
@@ -130,6 +130,7 @@ struct usb_ctrlrequest {
867c1e
 #define USB_DT_ENDPOINT                 0x05
867c1e
 #define USB_DT_DEVICE_QUALIFIER         0x06
867c1e
 #define USB_DT_OTHER_SPEED_CONFIG       0x07
867c1e
+#define USB_DT_ENDPOINT_COMPANION       0x30
867c1e
 
867c1e
 struct usb_device_descriptor {
867c1e
     u8  bLength;
867c1e
-- 
867c1e
1.7.1
867c1e