msm: ipa3: Use atomic map API to avoid sleep in atomic context
From atomic context if try to map the address it causing sleep and
device assert. To avoid this use atomic map API.
Change-Id: I1c0c22d0f24cc0e827b6d401c9ffb3224a937821
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
(cherry picked from commit 642c9153008b2c4dd9349771d8ea5afb44eb5435)
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa.c b/drivers/platform/msm/ipa/ipa_v3/ipa.c
index d20b59e..417fe33 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa.c
@@ -12107,7 +12107,7 @@
if (cb->is_cache_coherent)
prot |= IOMMU_CACHE;
- return iommu_map(domain, iova, paddr, size, prot);
+ return iommu_map_atomic(domain, iova, paddr, size, prot);
}
EXPORT_SYMBOL(ipa3_iommu_map);