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

Commit f1f98f89 authored by Shreyas K K's avatar Shreyas K K
Browse files

ion: msm_ion: Add freeze_late and restore_early callbacks



Delay the freeze callback of ion driver to allow
other clients to free their secure memory allocations.
In the restore path, the ion must be initialized
early before other clients make their allocations.

Change-Id: Iba0b8a0a1b4c26247d704a62c4b6f0675e93f7a2
Signed-off-by: default avatarShreyas K K <shrekk@codeaurora.org>
parent e80972da
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -396,8 +396,8 @@ static int msm_ion_pm_restore(struct device *dev)
}

static const struct dev_pm_ops msm_ion_pm_ops = {
	.freeze = msm_ion_pm_freeze,
	.restore = msm_ion_pm_restore,
	.freeze_late = msm_ion_pm_freeze,
	.restore_early = msm_ion_pm_restore,
};

static const struct of_device_id msm_ion_match_table[] = {