summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-12-04 15:19:46 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-12-04 15:19:46 -0800
commitd033c287eca509a40d1096f9340eda151692a5fe (patch)
tree5d4b8d0aeccc2c7c7015f3fcef2db775a974346e
parent9d94fcc7696b628d218282bf4ee74aef1155956e (diff)
parent211e211e7156bfb5d8630c0f12909d46738df8c6 (diff)
Merge "msm: ipa3: Fix to set QMB on USB ep"
-rw-r--r--drivers/platform/msm/ipa/ipa_v3/ipa_client.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_client.c b/drivers/platform/msm/ipa/ipa_v3/ipa_client.c
index 1ec73c4a35de..69dda048f2bb 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_client.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_client.c
@@ -1210,6 +1210,22 @@ int ipa3_request_gsi_channel(struct ipa_request_gsi_channel_params *params,
ep->priv = params->priv;
ep->keep_ipa_awake = params->keep_ipa_awake;
+
+ /* Config QMB for USB_CONS ep */
+ if (!IPA_CLIENT_IS_PROD(ep->client)) {
+ IPADBG("Configuring QMB on USB CONS pipe\n");
+ if (ipa_ep_idx >= ipa3_ctx->ipa_num_pipes ||
+ ipa3_ctx->ep[ipa_ep_idx].valid == 0) {
+ IPAERR("bad parm.\n");
+ return -EINVAL;
+ }
+ result = ipa3_cfg_ep_cfg(ipa_ep_idx, &params->ipa_ep_cfg.cfg);
+ if (result) {
+ IPAERR("fail to configure QMB.\n");
+ return result;
+ }
+ }
+
if (!ep->skip_ep_cfg) {
if (ipa3_cfg_ep(ipa_ep_idx, &params->ipa_ep_cfg)) {
IPAERR("fail to configure EP.\n");