Merge "msm: ipa3: Update holb config on USB DPL ep"

This commit is contained in:
Linux Build Service Account 2018-07-30 13:37:32 -07:00 committed by Gerrit - the friendly Code Review server
commit 420e40e5e7

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and * it under the terms of the GNU General Public License version 2 and
@ -63,6 +63,14 @@ int ipa3_enable_data_path(u32 clnt_hdl)
IPADBG("Enabling data path\n"); IPADBG("Enabling data path\n");
if (IPA_CLIENT_IS_CONS(ep->client)) { if (IPA_CLIENT_IS_CONS(ep->client)) {
memset(&holb_cfg, 0, sizeof(holb_cfg)); memset(&holb_cfg, 0, sizeof(holb_cfg));
/*
* Set HOLB on USB DPL CONS to avoid IPA stall
* if DPL client is not pulling the data
* on other end from IPA hw.
*/
if (ep->client == IPA_CLIENT_USB_DPL_CONS)
holb_cfg.en = IPA_HOLB_TMR_EN;
else
holb_cfg.en = IPA_HOLB_TMR_DIS; holb_cfg.en = IPA_HOLB_TMR_DIS;
holb_cfg.tmr_val = 0; holb_cfg.tmr_val = 0;
res = ipa3_cfg_ep_holb(clnt_hdl, &holb_cfg); res = ipa3_cfg_ep_holb(clnt_hdl, &holb_cfg);