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

Commit d2070885 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Matt Wagantall
Browse files

USB: QTI_DPL: don't send two 0-len packets during disconnect



A 0-len packet is sent to user space upon disconnect. The current code
is sending two 0-len packets in gqti_ctrl_disconnect for DPL function.
The gqti_ctrl_disconnect() calls qti_ctrl_queue_notify() to send the
0-len packet and there is no need to queue the 0-length packet
explicitly by calling gqti_ctrl_send_cpkt_tomodem().

Change-Id: I0fe8c4f9f9003dae912a8f051ce2ffd7b3d3a65a
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 40530e8f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -269,7 +269,6 @@ void gqti_ctrl_disconnect(void *gr, u8 port_num)
		g_rmnet->disconnect(port->port_usb);
	} else if (gr && (port->gtype == USB_GADGET_DPL)) {
		g_dpl = (struct gqdss *)gr;
		gqti_ctrl_send_cpkt_tomodem(DPL_QTI_CTRL_PORT_NO, NULL, 0);
	} else {
		pr_err("%s(): unrecognized gadget type(%d).\n",
					__func__, port->gtype);