소스 검색

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 <[email protected]>
Ashok Vuyyuru 2 년 전
부모
커밋
642c915300
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_v3/ipa.c

@@ -12062,7 +12062,7 @@ int ipa3_iommu_map(struct iommu_domain *domain,
 	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);
 }
 
 /**