Skip to content

Commit 713d488

Browse files
committed
clk: sunxi-ng: a523: Mark MBUS clock as critical
The MBUS serves as the main data bus for various DMA masters in the system. If its clock is not enabled, the DMA operations will stall, leading to the peripherals stalling or timing out. This has been observed as USB or MMC hosts timing out waiting for transactions when the clock is automatically disabled by the CCF due to it not being used. Mark the clock as critical so that it never gets disabled. Fixes: 74b0443 ("clk: sunxi-ng: a523: add system mod clocks") Reviewed-by: Andre Przywara <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 19272b3 commit 713d488

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/sunxi-ng/ccu-sun55i-a523.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ static SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT(mbus_clk, "mbus", mbus_parents,
385385
0, 0, /* no P */
386386
24, 3, /* mux */
387387
BIT(31), /* gate */
388-
0, CCU_FEATURE_UPDATE_BIT);
388+
CLK_IS_CRITICAL,
389+
CCU_FEATURE_UPDATE_BIT);
389390

390391
static const struct clk_hw *mbus_hws[] = { &mbus_clk.common.hw };
391392

0 commit comments

Comments
 (0)