Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab0d5425 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "fastboot: Support USB 3.x SuperSpeed devices on Linux"

parents dbb7c46d 1c02213e
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -223,6 +223,13 @@ static int filter_usb_device(char* sysfs_name,
            } else {
            } else {
                out = ept->bEndpointAddress;
                out = ept->bEndpointAddress;
            }
            }

            // For USB 3.0 devices skip the SS Endpoint Companion descriptor
            if (check((struct usb_descriptor_hdr *)ptr, len,
                      USB_DT_SS_ENDPOINT_COMP, USB_DT_SS_EP_COMP_SIZE) == 0) {
                len -= USB_DT_SS_EP_COMP_SIZE;
                ptr += USB_DT_SS_EP_COMP_SIZE;
            }
        }
        }


        info.has_bulk_in = (in != -1);
        info.has_bulk_in = (in != -1);