소스 검색

msm: ipa3: Fix to handle right error code

In deepsleep suspend scenario gsi hal driver will be cleaned up
and after that if we try to query the pending interrupt it will return
error, so driver shouldn't assert. Adding to changes to handle the
error scenario.

Change-Id: Ifdffa0496b41f70e00a67b6e724e48e029980449
Signed-off-by: Ashok Vuyyuru <[email protected]>
Ashok Vuyyuru 2 년 전
부모
커밋
56f963279d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa.c

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

@@ -6779,7 +6779,7 @@ void ipa3_disable_clks(void)
 	 */
 	if (!ipa3_ctx->ipa_config_is_mhi) {
 		type = gsi_pending_irq_type();
-		if (type) {
+		if (type != -EPERM && type) {
 			IPAERR("unexpected gsi irq type: %d\n", type);
 			/* increase ipa3_active_clients for smp2p response */
 			atomic_inc(&ipa3_ctx->ipa3_active_clients.cnt);