From 2d64f3c03b4ab9e3fbc1500dd049443670ef832a Mon Sep 17 00:00:00 2001 From: Elaine Zhang Date: Tue, 8 May 2018 09:34:12 +0800 Subject: [PATCH] clk: rockchip: rk3288: add the condition of the call register_syscore_ops The pwm clk parent is GPLL,PWM clk not allowed to change freq, so the GPLL not allowed change mode and freq when pwm is used. If have trust is need't rk3288_clk_suspend and rk3288_clk_resume. Change-Id: I4845fda89d7ae7713e8c0e94747c3f4dfd140c6a Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rk3288.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 59c79369cef8..96025b3dd2c3 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -19,6 +19,7 @@ #include #include #include "clk.h" +#include #define RK3288_GRF_SOC_CON(x) (0x244 + x * 4) #define RK3288_GRF_SOC_STATUS1 0x284 @@ -981,7 +982,9 @@ static void __init rk3288_clk_init(struct device_node *np) rockchip_register_restart_notifier(ctx, RK3288_GLB_SRST_FST, rk3288_clk_shutdown); - register_syscore_ops(&rk3288_clk_syscore_ops); + + if (!psci_smp_available()) + register_syscore_ops(&rk3288_clk_syscore_ops); rockchip_clk_of_add_provider(np, ctx);