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

Commit eb1d2d50 authored by Ajay Agarwal's avatar Ajay Agarwal Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_gsi: Notify line state change from set_alt for RmNet



Currently the driver notifies line state change to QTI for RmNet
interface on getting the line state SET control request from the
host. There is a requirement now that the QTI wants to query IPA
for ep_info once the data path has been set up. Hence, send the
zero byte packet for line state change from setup() function to
set_alt after the xdci_connect has been done. QTI can then query
USB and IPA for info via IOCTLs.

Change-Id: Iecae2c7e67b63474d26fcbccada9ebe2364295a7
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 2b6cfb18
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2224,7 +2224,6 @@ gsi_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
			queue_work(gsi->c_port.uevent_wq,
					&gsi->c_port.uevent_work);

		gsi_ctrl_send_cpkt_tomodem(gsi, NULL, 0);
		value = 0;
		break;
	case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8)
@@ -2601,7 +2600,10 @@ static int gsi_set_alt(struct usb_function *f, unsigned int intf,
	if (gsi->prot_id == USB_PROT_DIAG_IPA ||
				gsi->prot_id == USB_PROT_DPL_ETHER ||
				gsi->prot_id == USB_PROT_GPS_CTRL ||
				gsi->prot_id == USB_PROT_MBIM_IPA)
				gsi->prot_id == USB_PROT_MBIM_IPA ||
				gsi->prot_id == USB_PROT_RMNET_IPA ||
				gsi->prot_id == USB_PROT_RMNET_V2X_IPA ||
				gsi->prot_id == USB_PROT_RMNET_ETHER)
		gsi_ctrl_send_cpkt_tomodem(gsi, NULL, 0);

	if (gsi->c_port.uevent_wq)