diff options
| author | Hemant Kumar <hemantk@codeaurora.org> | 2016-11-17 14:13:14 -0800 |
|---|---|---|
| committer | Hemant Kumar <hemantk@codeaurora.org> | 2016-11-18 11:04:57 -0800 |
| commit | 73277de40b34ee14f3fe21f3d1f8badad49ba2df (patch) | |
| tree | 4f719d9ef0e2725357a0ddaa5302e55f17d0104e | |
| parent | 4b1c2e228c806b716546812e6b61b3637d23b4f6 (diff) | |
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>
| -rw-r--r-- | drivers/usb/gadget/function/f_gsi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_gsi.c b/drivers/usb/gadget/function/f_gsi.c index 738f20d935d6..af20033b621f 100644 --- a/drivers/usb/gadget/function/f_gsi.c +++ b/drivers/usb/gadget/function/f_gsi.c @@ -1984,6 +1984,10 @@ static int gsi_set_alt(struct usb_function *f, unsigned intf, unsigned alt) 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; notify_ep_disable: |
