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

Commit 0dc36471 authored by Devdutt Patnaik's avatar Devdutt Patnaik
Browse files

usb: gadget: composite: Send BOS descriptor if L1 is enabled



Send BOS descriptor to host when L1 is enabled via enable_l1_for_hs
module param. This is needed to pass USBCV Ch9 tests.

Change-Id: I924bccfc25dba4a10d19a6301f425f53fa46f508
Signed-off-by: default avatarDevdutt Patnaik <dpatnaik@codeaurora.org>
parent c81ea141
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1703,7 +1703,8 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
		case USB_DT_BOS:
			if ((gadget_is_superspeed(gadget) &&
				(gadget->speed >= USB_SPEED_SUPER))
				 || gadget->l1_supported) {
				 || (gadget->l1_supported
					|| enable_l1_for_hs)) {
				value = bos_desc(cdev);
				value = min(w_length, (u16) value);
			}