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

Commit c876268f authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

usb: gadget: qdss: Fix the data transport argument to gqti_ctrl_connect()



QTI control transport module needs to know the data transport of the
function to prepare the endpoint type and interface id. These values
are passed to user space via EP_LOOKUP ioctl. The current code is
passing the control transport instead of the data transport as the
4th argument to gqti_ctrl_connect().

Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Change-Id: If563e206e77341e79c210ee9e8474f12fc26834c
parent d112533f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ static void usb_qdss_connect_work(struct work_struct *work)

	if (ctrl_xport == USB_GADGET_XPORT_QTI) {
		status = gqti_ctrl_connect(&qdss->port, DPL_QTI_CTRL_PORT_NO,
					qdss->data_iface_id, ctrl_xport,
					qdss->data_iface_id, dxport,
					USB_GADGET_DPL);
		if (status) {
			pr_err("%s: gqti_ctrl_connect failed: err:%d\n",