Skip to content

Commit 3e75021

Browse files
TroyMitchell911bebarino
authored andcommitted
clk: spacemit: k3: mark top_dclk as CLK_IS_CRITICAL
top_dclk is the DDR bus clock. If it is gated by clk_disable_unused, all memory-mapped bus transactions cease to function, causing DMA engines to hang and general system instability. Mark it CLK_IS_CRITICAL so the CCF never gates it during the unused clock sweep. Fixes: e371a77 ("clk: spacemit: k3: add the clock tree") Reviewed-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 254f496 commit 3e75021

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/spacemit/ccu-k3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ static const struct clk_parent_data top_parents[] = {
846846
CCU_PARENT_HW(pll6_d3),
847847
};
848848
CCU_MUX_DIV_GATE_FC_DEFINE(top_dclk, top_parents, APMU_TOP_DCLK_CTRL, 5, 3,
849-
BIT(8), 2, 3, BIT(1), 0);
849+
BIT(8), 2, 3, BIT(1), CLK_IS_CRITICAL);
850850

851851
static const struct clk_parent_data ucie_parents[] = {
852852
CCU_PARENT_HW(pll1_d8_307p2),

0 commit comments

Comments
 (0)