usb: gadget: Notify QTI upon cable connect for DPL
QTI needs an indication of cable connect for DPL. Since host DPL driver does not send DTR indication send zero length packet to QTI upon cable connect. Change-Id: I545771f9a84ecc9c2f641c17e057673a32b1f305 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
parent
4b1c2e228c
commit
73277de40b
1 changed files with 4 additions and 0 deletions
|
@ -1984,6 +1984,10 @@ static int gsi_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
|
||||||
|
|
||||||
atomic_set(&gsi->connected, 1);
|
atomic_set(&gsi->connected, 1);
|
||||||
|
|
||||||
|
/* send 0 len pkt to qti to notify state change */
|
||||||
|
if (gsi->prot_id == IPA_USB_DIAG)
|
||||||
|
gsi_ctrl_send_cpkt_tomodem(gsi, NULL, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
notify_ep_disable:
|
notify_ep_disable:
|
||||||
|
|
Loading…
Add table
Reference in a new issue