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

Commit b473fc4e 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_BEFORE_POWERUP, which doesn't guarantee the unlocking
of XPU for the clients sitting on peripheral in case for watchdog
bite. This could lead to a XPU violation. Move the notification
to free up memory during SUBSYS_AFTER_POWERUP to ensure that the
allocated memory XPU has been removed.

Change-Id: Ib19c9172bc282381ab372d197d927a7842298110
Signed-off-by: default avatarKatish Paran <kparan@codeaurora.org>
parent aebe1f28
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_BEFORE_POWERUP:
	case SUBSYS_AFTER_POWERUP:
		pr_err("memshare: Modem Restart has happened\n");
		free_mem_clients(DHMS_MEM_PROC_MPSS_V01);
		break;