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

Commit c1d75984 authored by Pushkar Joshi's avatar Pushkar Joshi
Browse files

soc: qcom: pil-msa: Disable ahb clock during modem ramdump collection



On targets with the ahb_clk_vote DT flag, the ahb clock needs to be
disabled in the ramdump collection path. Hence, replace the
pil_mss_shutdown call during modem ramdump collection with the
pil_mss_deinit_image which does the cleanup done in pil_mss_shutdown
and additionally also disables the ahb clock.

CRs-Fixed: 739180
Change-Id: I3437ce87558926953da2d8797d8b6cd8f9d52306
Signed-off-by: default avatarPushkar Joshi <pushkarj@codeaurora.org>
parent 9b4d473e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42,4 +42,5 @@ int pil_mss_reset_load_mba(struct pil_desc *pil);
int pil_mss_make_proxy_votes(struct pil_desc *pil);
void pil_mss_remove_proxy_votes(struct pil_desc *pil);
int pil_mss_shutdown(struct pil_desc *pil);
int pil_mss_deinit_image(struct pil_desc *pil);
#endif
+3 −3
Original line number Diff line number Diff line
@@ -173,10 +173,10 @@ static int modem_ramdump(int enable, const struct subsys_desc *subsys)
	if (ret < 0)
		pr_err("Unable to dump modem fw memory (rc = %d).\n", ret);

	dma_free_attrs(&drv->mba_mem_dev, drv->q6->mba_size,
			drv->q6->mba_virt, drv->q6->mba_phys, &drv->attrs_dma);
	ret = pil_mss_deinit_image(&drv->q6->desc);
	if (ret < 0)
		pr_err("Unable to free up resources (rc = %d).\n", ret);

	pil_mss_shutdown(&drv->q6->desc);
	pil_mss_remove_proxy_votes(&drv->q6->desc);
	return ret;
}