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

Commit 0a2d8e7d authored by Katish Paran's avatar Katish Paran
Browse files

memshare: Free the memory after XPU unlocking is done



Currently memshare driver is listening to notification
SUBSYS_AFTER_SHUTDOWN, which doesn't guarantee the unlocking
of XPU for the clients sitting on peripheral. This could lead
to a XPU violation. Move the notification to free up memory
during SUBSYS_BEFORE_POWERUP to ensure that the allocated memory
XPU has been removed.

Change-Id: Idff7972e78c8e8deb987179b96741effb06799b6
CRs-Fixed: 769787
Signed-off-by: default avatarKatish Paran <kparan@codeaurora.org>
parent f7d25bdf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ static int modem_notifier_cb(struct notifier_block *this, unsigned long code,

	switch (code) {

	case SUBSYS_AFTER_SHUTDOWN:
	case SUBSYS_BEFORE_POWERUP:
		pr_err("memshare: Modem Restart has happened\n");
		free_mem_clients(DHMS_MEM_PROC_MPSS_V01);
		break;