Skip to contentSkip to conversation

clk: rockchip: also protect hclk_peri as critical

PATCH New Heiko Stübner 2 participants 2 messages Sep 10, 2014

Subsystems (2)
lore
Share & tools
lore

Heiko Stübner

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/rockchip/clk-rk3188.c | 1 +
 drivers/clk/rockchip/clk-rk3288.c | 1 +
 2 files changed, 2 insertions(+)
drivers/clk/rockchip/clk-rk3188.c +1 -0
index 1892c66..9f9937e 100644
@@ -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)
drivers/clk/rockchip/clk-rk3288.c +1 -0
index 43e0ad0..c76b16d 100644
@@ -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)
Signature · 1 line
2.0.1
#1 lore raw

PATCH 1/1 clk: rockchip: also protect hclk_peri as critical

Quoting Heiko St?bner (2014-09-10 08:52:02)

Quoted 6 lines

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.

Applied to clk-next.

Regards,
Mike

Quoted 33 lines
---
 drivers/clk/rockchip/clk-rk3188.c | 1 +
 drivers/clk/rockchip/clk-rk3288.c | 1 +
 2 files changed, 2 insertions(+)
drivers/clk/rockchip/clk-rk3188.c +1 -0
index 1892c66..9f9937e 100644
@@ -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)
drivers/clk/rockchip/clk-rk3288.c +1 -0
index 43e0ad0..c76b16d 100644
@@ -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)
Signature · 1 line
2.0.1