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

Commit 43827f8b authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

qcom: pil-msa: Correct the failure path for modem bootup



Currently, when modem boot fails after MBA has started running,
the necessary cleanup is not done. Use the deinit_image() pil
op to disable the necessary clocks and regulators while asserting
the halt bits before returning a failure.

Change-Id: I312046ba1d7f551066efcea1cccd753b4595f5eb
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 44127a12
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -408,6 +408,9 @@ static int pil_msa_auth_modem_mdt(struct pil_desc *pil, const u8 *metadata,
	}

	dma_free_coherent(pil->dev, size, mdata_virt, mdata_phys);

	if (ret && drv->q6)
		pil_mss_shutdown(pil);
	return ret;
}

@@ -494,6 +497,7 @@ struct pil_reset_ops pil_msa_mss_ops_selfauth = {
	.proxy_unvote = pil_mss_remove_proxy_votes,
	.verify_blob = pil_msa_mba_verify_blob,
	.auth_and_reset = pil_msa_mba_auth,
	.deinit_image = pil_mss_shutdown,
	.shutdown = pil_mss_shutdown,
};