Invoke the GPD_OFF_PRE/GPD_ON_POST power Domain notifiers. This will allow some clocks to be saved and restored. These notifiers can also be invoked from the core power domain files but is not done as exynos is the only user of these notifiers as of now. In exynos7 SOC's only GPD_OFF_PRE/GPD_ON_POST are required. Cc: Kukjin Kim <kgene.kim@xxxxxxxxxxx> Reviewed-by: Pankaj Dubey <pankaj.dubey@xxxxxxxxxxx> Signed-off-by: Amit Daniel Kachhap <amit.daniel@xxxxxxxxxxx> --- drivers/soc/samsung/pm_domains.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index f14f182..11633c2 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -99,11 +99,16 @@ static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) static int exynos_pd_power_on(struct generic_pm_domain *domain) { - return exynos_pd_power(domain, true); + int ret; + + ret = exynos_pd_power(domain, true); + genpd_invoke_transition_notifier(domain, GPD_ON_POST); + return ret; } static int exynos_pd_power_off(struct generic_pm_domain *domain) { + genpd_invoke_transition_notifier(domain, GPD_OFF_PRE); return exynos_pd_power(domain, false); } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html