Explorar o código

msm: ipa3: enable napi lan rx before the pipes setup only to avoid race condition

enable napi rx of lan pipe before the pipes are getting setup to avoid
a possible race condition of channel moving to a poll mode at the same
time so that it ensures the proper napi state.

Change-Id: I6c4643c612c73c8bc7bb1f0d52354a14d5592962
Signed-off-by: Jagadeesh Ponduru <[email protected]>
Jagadeesh Ponduru hai 1 ano
pai
achega
65f57a5246
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa.c

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

@@ -8155,6 +8155,7 @@ static int ipa3_post_init(const struct ipa3_plat_drv_res *resource_p,
 		}
 	}
 
+	ipa3_enable_napi_lan_rx();
 	/* setup the AP-IPA pipes */
 	if (ipa3_setup_apps_pipes()) {
 		IPAERR(":failed to setup IPA-Apps pipes\n");
@@ -8252,7 +8253,6 @@ static int ipa3_post_init(const struct ipa3_plat_drv_res *resource_p,
 	mutex_lock(&ipa3_ctx->lock);
 	ipa3_ctx->ipa_initialization_complete = true;
 	mutex_unlock(&ipa3_ctx->lock);
-	ipa3_enable_napi_lan_rx();
 	/* init uc-activation tbl*/
 	ipa3_setup_uc_act_tbl();
 	ipa_trigger_ipa_ready_cbs();