Jelajahi Sumber

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 tahun lalu
induk
melakukan
56f963279d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);