ソースを参照

qcacld-3.0: Set enable_rpm earlier in hdd_wlan_start_modules

Currently enable_rpm is being set in hif_rtpm_start
which is called later in hdd_wlan_start_modules,
this can result in race between hif_rtpm_start
and hif_rtpm_put.

To fix the issue set enable_rpm earlier to avoid
race condition.

Change-Id: Id33888d7df570dd68657a780fc636203e4b84b90
CRs-Fixed: 3585156
Amit Mehta 1 年間 前
コミット
df8318fd9f
1 ファイル変更1 行追加0 行削除
  1. 1 0
      core/hdd/src/wlan_hdd_main.c

+ 1 - 0
core/hdd/src/wlan_hdd_main.c

@@ -20217,6 +20217,7 @@ static void hdd_update_hif_config(struct hdd_context *hdd_ctx)
 		ucfg_dp_get_rx_softirq_yield_duration(hdd_ctx->psoc);
 
 	hif_init_ini_config(scn, &cfg);
+	hif_set_enable_rpm(scn);
 
 	if (prevent_link_down)
 		hif_vote_link_up(scn);