clk: rockchip: mark aclk_emmc_noc as a critical clock on rk3399
Subsystems (2)
PATCH 1/1 clk: rockchip: mark aclk_emmc_noc as a critical clock on rk3399
From: Xing Zheng <[email protected]>
We don't have code to handle any of the noc clocks in rk3399 and they're all just listed as critical clocks. Let's do the same for aclk_emmc_noc.
Without this clock being marked as critical we have problems around suspend/resume after commit 20c389e656a8 ("clk: rockchip: fix incorrect aclk_emmc source gate bits on rk3399"). Before that change we were presumably not actually gating any of these clocks because we were setting the wrong gate.
--- drivers/clk/rockchip/clk-rk3399.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/rockchip/clk-rk3399.c +1 -0
@@ -1489,6 +1489,7 @@ static const char *const rk3399_cru_critical_clocks[] __initconst = {"hclk_perilp1" ,"hclk_perilp1_noc" ,"aclk_dmac0_perilp" , +"aclk_emmc_noc" ,"gpll_hclk_perilp1_src" ,"gpll_aclk_perilp0_src" , "gpll_aclk_perihp_src",
Signature · 1 line
2.8.0.rc3.226.g39d4020
Am Mittwoch, 24. August 2016, 11:29:39 schrieb Douglas Anderson:
Quoted 6 lines
From: Xing Zheng <[email protected]>
We don't have code to handle any of the noc clocks in rk3399 and they're all just listed as critical clocks. Let's do the same for
aclk_emmc_noc.
Quoted 8 lines
Without this clock being marked as critical we have problems around suspend/resume after commit
20c389e656a8("clk: rockchip: fix incorrectaclk_emmcsource gate bits on rk3399"). Before that change we were presumably not actually gating any of these clocks because we were setting the wrong gate.Signed-off-by Xing Zheng <[email protected]>Signed-off-by Douglas Anderson <[email protected]>
applied to my clk-fixes branch
Thanks
Heiko