From a3511519b3392cfb763c275330e8a9d4ab4ddd1e Mon Sep 17 00:00:00 2001 From: lixh8 Date: Wed, 11 Nov 2020 10:22:56 +0800 Subject: [PATCH] skip ipa assert for debug build ipa assert will break userdebug build in secure hw for logs. skip ipa assert for debug build. Change-Id: I52d5433282ce9bb24e954bca9e3d0c04fe5bedc5 Signed-off-by: lixh8 Reviewed-on: https://gerrit.mot.com/1799258 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- drivers/platform/msm/ipa/ipa_v3/ipa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa.c b/drivers/platform/msm/ipa/ipa_v3/ipa.c index 7744c3c03496..8a5ae63597eb 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa.c @@ -6356,7 +6356,12 @@ static void ipa3_load_ipa_fw(struct work_struct *work) if (result) { IPAERR("IPA FW loading process has failed result=%d\n", result); +#if defined(DEBUG) + IPAERR("IPA FW loading FAILED!!! SKIP ASSERT for debug build!!!"); +#else ipa_assert(); +#endif + return; } pr_info("IPA FW loaded successfully\n");