clk: rockchip: also protect hclk_peri as critical
authorHeiko Stübner <heiko@sntech.de>
Wed, 10 Sep 2014 15:52:02 +0000 (17:52 +0200)
committerMike Turquette <mturquette@linaro.org>
Wed, 10 Sep 2014 17:42:02 +0000 (10:42 -0700)
The dwc2 usb controller also uses agressive clock gating, which in this
case leads to hclk_peri getting disabled and hanging the system.
Therefore move it to the critical clocks until we also control that
part of the system.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/rockchip/clk-rk3188.c
drivers/clk/rockchip/clk-rk3288.c

index 732118ed55a5edf464390a59ec7e47fd8d9d7f2d..0147614e94b89c36297d1669d13f08f32649dd30 100644 (file)
@@ -602,6 +602,7 @@ static struct rockchip_clk_branch rk3188_clk_branches[] __initdata = {
 static const char *rk3188_critical_clocks[] __initconst = {
        "aclk_cpu",
        "aclk_peri",
+       "hclk_peri",
 };
 
 static void __init rk3188_common_clk_init(struct device_node *np)
index 038b1aaf8c56ed80157e8d6b92d9c1a472fbb128..08c24c6e3e67046fb3ceb7b76ecc9d99d67800c0 100644 (file)
@@ -683,6 +683,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
 static const char *rk3288_critical_clocks[] __initconst = {
        "aclk_cpu",
        "aclk_peri",
+       "hclk_peri",
 };
 
 static void __init rk3288_clk_init(struct device_node *np)