소스 검색

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 1 년 전
부모
커밋
65f57a5246
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();