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

Commit d5c43e7b authored by Sanjay Dwivedi's avatar Sanjay Dwivedi
Browse files

msm: pil: bootkpi: Add conditional boot marker for modem



Add conditional boot marker for modem sub-system in peripheral
loader driver. Condition is added to find subsystem
and place marker only for modem subsystem.

Change-Id: I5697b78e0a8322477e78d7b5f9814e1c18b42152
Signed-off-by: default avatarSanjay Dwivedi <sanjaykd@codeaurora.org>
parent f2be2c18
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -945,7 +945,9 @@ static int pil_init_mmap(struct pil_desc *desc, const struct pil_mdt *mdt)
	if (ret)
		return ret;

	if (!strcmp(desc->name, "modem"))
		place_marker("M - Modem Image Start Loading");

	pil_info(desc, "loading from %pa to %pa\n", &priv->region_start,
							&priv->region_end);

@@ -1405,7 +1407,10 @@ int pil_boot(struct pil_desc *desc)
		goto err_auth_and_reset;
	}
	pil_log("reset_done", desc);

	if (!strcmp(desc->name, "modem"))
		place_marker("M - Modem out of reset");

	pil_info(desc, "Brought out of reset\n");
	desc->modem_ssr = false;
err_auth_and_reset: