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

Commit 5fcab299 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Fix BOS descriptor failure when L1 is disabled"

parents 27376c72 876ac060
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1773,7 +1773,8 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
				value = min(w_length, (u16) value);
			break;
		case USB_DT_BOS:
			if (gadget_is_superspeed(gadget) ||
			if ((gadget_is_superspeed(gadget) &&
				(gadget->speed >= USB_SPEED_SUPER)) ||
				!disable_l1_for_hs) {
				value = bos_desc(cdev);
				value = min(w_length, (u16) value);