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

Commit 8a518f0a 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: f_gsi: Add handling of SET_CONTROL_LINE_STATE control request"

parents eb136cfc 1a8b284e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1837,6 +1837,13 @@ gsi_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
		log_event_dbg("copied encap_resp %d bytes",
			value);
		break;
	case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8)
			| USB_CDC_REQ_SET_CONTROL_LINE_STATE:
		log_event_dbg("%s: USB_CDC_REQ_SET_CONTROL_LINE_STATE DTR:%d\n",
				__func__, w_value & ACM_CTRL_DTR ? 1 : 0);
		gsi_ctrl_send_cpkt_tomodem(gsi, NULL, 0);
		value = 0;
		break;
	case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8)
			| USB_CDC_SET_ETHERNET_PACKET_FILTER:
		/* see 6.2.30: no data, wIndex = interface,