cnss2: Download qdss cfg file at end of fw mem ready handler

Download qdss cfg file at end of fw mem ready handler instead
of downloading cfg file after fw init done. Wlan fw expects
qdss mem req/resp from host before mode on request from it.
Wlan fw will wait for qdss memory sync qmi exchange from
host before sending fw init done to it to avoid receiving
qdss memory sync after mode on request.

Change-Id: If4e752c398821a5cdfeb1b5aeaf735f1973b5635
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
This commit is contained in:
Sandeep Singh 2021-03-09 15:37:05 +05:30
commit e67f869ac6

View file

@ -448,6 +448,9 @@ static int cnss_fw_mem_ready_hdlr(struct cnss_plat_data *plat_priv)
if (ret)
goto out;
if (cnss_wlfw_qdss_dnld_send_sync(plat_priv))
cnss_pr_info("Failed to download qdss configuration file");
return 0;
out:
return ret;
@ -538,9 +541,6 @@ static int cnss_fw_ready_hdlr(struct cnss_plat_data *plat_priv)
cnss_wlfw_send_pcie_gen_speed_sync(plat_priv);
if (cnss_wlfw_qdss_dnld_send_sync(plat_priv))
cnss_pr_info("Failed to download qdss configuration file");
if (test_bit(CNSS_FW_BOOT_RECOVERY, &plat_priv->driver_state)) {
clear_bit(CNSS_FW_BOOT_RECOVERY, &plat_priv->driver_state);
clear_bit(CNSS_DRIVER_RECOVERY, &plat_priv->driver_state);