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

Commit 40530e8f authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Matt Wagantall
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 df8cfcb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -673,7 +673,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",