Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd7dcb16 authored by Yue Ma's avatar Yue Ma
Browse files

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: default avatarYue Ma <yuem@codeaurora.org>
parent a8aba157
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1350,6 +1350,8 @@ int cnss_force_collect_rddm(struct device *dev)
		 msecs_to_jiffies(CNSS_RDDM_TIMEOUT_MS));
	if (!ret)
		ret = -ETIMEDOUT;
	else if (ret > 0)
		ret = 0;

	return ret;
}
+2 −1
Original line number Diff line number Diff line
@@ -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);
}