summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorGhanim Fodi <gfodi@codeaurora.org>2016-10-05 11:59:18 +0300
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-26 23:36:47 -0700
commite1cf6bb611cb9788fc1095a86926b1e1bf70048a (patch)
tree093d49c9d65ad7fe3ce6d9df3ac1330529859694 /drivers/usb
parentbcd8ec9210c9048c14d934e16267ba79a894db09 (diff)
msm: ipa3: Support IPA-USB suspend sequence without remote wake-up
Today IPA-USB uses disconnect sequence when USB initiates suspend without remote wake-up, and uses suspend sequence when USB initiates suspend with remote wake-up. In accordance with USB-GSI driver, changing this behavior to use suspend sequence in both of the cases. This is to overcome some USB H/W malfunction when using disconnect sequence in case of suspend scenario. Change-Id: Iba43e192905ab37d196aea4b5d00861b9cb7c347 CRs-Fixed: 1068949 Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/function/f_gsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_gsi.c b/drivers/usb/gadget/function/f_gsi.c
index c298c95d4ba0..738f20d935d6 100644
--- a/drivers/usb/gadget/function/f_gsi.c
+++ b/drivers/usb/gadget/function/f_gsi.c
@@ -497,7 +497,8 @@ static int ipa_suspend_work_handler(struct gsi_data_port *d_port)
log_event_dbg("%s: Calling xdci_suspend", __func__);
ret = ipa_usb_xdci_suspend(gsi->d_port.out_channel_handle,
- gsi->d_port.in_channel_handle, gsi->prot_id);
+ gsi->d_port.in_channel_handle, gsi->prot_id,
+ true);
if (!ret) {
d_port->sm_state = STATE_SUSPENDED;