From 13c8f5cea2a1b1b01a1ce1f715003be57e3cc0ec Mon Sep 17 00:00:00 2001 From: Chaitanya Pratapa Date: Sun, 30 Aug 2020 21:26:42 -0700 Subject: [PATCH] msm: ipa: disable status on ODL_DPL_CONS pipe above IPAv4.5 targets ADPLv3 targets do not require status to be enabled on ODL_DPL pipe. Make changes to disable the status for targets with IPAv4.5 and above. Change-Id: Ica07a25a01e742928d3ecb19a88b7ee2305235ae Signedo-off-by: Chaitanya Pratapa --- drivers/platform/msm/ipa/ipa_v3/ipa_dp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c b/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c index 41c8ff3279e5..e9992c683fa9 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c @@ -4120,9 +4120,10 @@ static int ipa3_assign_policy(struct ipa_sys_connect_params *in, * Dont enable ipa_status for APQ, since MDM IPA * has IPA >= 4.5 with DPLv3. */ - if (ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ && - ipa3_is_mhip_offload_enabled()) - sys->ep->status.status_en = false; + if ((ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ && + ipa3_is_mhip_offload_enabled()) || + (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5)) + sys->ep->status.status_en = false; else sys->ep->status.status_en = true; sys->policy = IPA_POLICY_INTR_POLL_MODE;