mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
cnss2: Set RDDM done only when dump is collected
This can help retry dump collection in kernel panic handler if something goes wrong in normal path. Also return proper value for cnss_force_collect_rddm() when RDDM is done successfully. Change-Id: Icf1dabb0313162c459839c52119420f65f73d5c1 Signed-off-by: Yue Ma <yuem@codeaurora.org>
This commit is contained in:
parent
a8aba15775
commit
fd7dcb16e5
2 changed files with 4 additions and 1 deletions
|
|
@ -1350,6 +1350,8 @@ wait_rddm:
|
|||
msecs_to_jiffies(CNSS_RDDM_TIMEOUT_MS));
|
||||
if (!ret)
|
||||
ret = -ETIMEDOUT;
|
||||
else if (ret > 0)
|
||||
ret = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4463,8 +4463,9 @@ void cnss_pci_collect_dump_info(struct cnss_pci_data *pci_priv, bool in_panic)
|
|||
if (dump_data->nentries > 0)
|
||||
plat_priv->ramdump_info_v2.dump_data_valid = true;
|
||||
|
||||
skip_dump:
|
||||
cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_RDDM_DONE);
|
||||
|
||||
skip_dump:
|
||||
complete(&plat_priv->rddm_complete);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue