浏览代码

clk: rockchip: also protect hclk_peri as critical

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>
Heiko Stübner 11 年之前
父节点
当前提交
2fed71e57a
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      drivers/clk/rockchip/clk-rk3188.c
  2. 1 0
      drivers/clk/rockchip/clk-rk3288.c

+ 1 - 0
drivers/clk/rockchip/clk-rk3188.c

@@ -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)

+ 1 - 0
drivers/clk/rockchip/clk-rk3288.c

@@ -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)