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

Commit e1ebe59e authored by Jitendra Sharma's avatar Jitendra Sharma
Browse files

soc: qcom: pil: Remove null character writing of shared mem



PIL is writing '\0' in the shared mem region. This
region is shared with other clients that are also trying
to read. Hence they miss first character.

Remove this null character writing by PIL, as this mem
area is supposed to be Read only.

Change-Id: Ib7671256ca301afae4ab69bb1f8a87c529dc10cc
Signed-off-by: default avatarJitendra Sharma <shajit@codeaurora.org>
parent 1d4cc365
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -60,9 +60,6 @@ static void log_modem_sfr(void)

	strlcpy(reason, smem_reason, min(size, MAX_SSR_REASON_LEN));
	pr_err("modem subsystem failure reason: %s.\n", reason);

	smem_reason[0] = '\0';
	wmb();
}

static void restart_modem(struct modem_data *drv)
+0 −3
Original line number Diff line number Diff line
@@ -857,9 +857,6 @@ static void log_failure_reason(const struct pil_tz_data *d)

	strlcpy(reason, smem_reason, min(size, MAX_SSR_REASON_LEN));
	pr_err("%s subsystem failure reason: %s.\n", name, reason);

	smem_reason[0] = '\0';
	wmb();
}

static int subsys_shutdown(const struct subsys_desc *subsys, bool force_stop)