فهرست منبع

qcacmn: Do not force reset RTPM usage count during SSR

As part of SSR, usage count of RTPM is reset to zero which
should not be the case as during RTPM stop, usage count is
incremented to 2.
To fix this, do not reset RTPM usage count to 0 when SSR
happens.

Change-Id: Ifab58075b1aa733500a635e34d209ab65c5f63a8
CRs-Fixed: 3233572
Ananya Gupta 3 سال پیش
والد
کامیت
1ceba55644
1فایلهای تغییر یافته به همراه0 افزوده شده و 13 حذف شده
  1. 0 13
      hif/src/hif_runtime_pm.c

+ 0 - 13
hif/src/hif_runtime_pm.c

@@ -329,10 +329,6 @@ static void hif_rtpm_sanitize_exit(void)
 static void hif_rtpm_sanitize_ssr_exit(void)
 {
 	struct hif_pm_runtime_lock *ctx, *tmp;
-	struct hif_rtpm_client *client;
-	int i;
-
-	qdf_atomic_set(&gp_hif_rtpm_ctx->dev->power.usage_count, 0);
 
 	qdf_spin_lock_bh(&gp_hif_rtpm_ctx->prevent_list_lock);
 	list_for_each_entry_safe(ctx, tmp,
@@ -340,15 +336,6 @@ static void hif_rtpm_sanitize_ssr_exit(void)
 		__hif_pm_runtime_allow_suspend(ctx);
 	}
 	qdf_spin_unlock_bh(&gp_hif_rtpm_ctx->prevent_list_lock);
-
-	for (i = 0; i < HIF_RTPM_ID_MAX; i++) {
-		client = gp_hif_rtpm_ctx->clients[i];
-		if (client) {
-			qdf_atomic_set(&client->active_count, 0);
-			qdf_atomic_set(&client->get_count, 0);
-			qdf_atomic_set(&client->put_count, 0);
-		}
-	}
 }
 
 void hif_rtpm_close(struct hif_softc *scn)