Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 74b0443a0d0a ("clk: sunxi-ng: a523: add system mod clocks")
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://patch.msgid.link/20250607135029.2085140-1-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>

+2 -1
+2 -1
drivers/clk/sunxi-ng/ccu-sun55i-a523.c
··· 385 385 0, 0, /* no P */ 386 386 24, 3, /* mux */ 387 387 BIT(31), /* gate */ 388 - 0, CCU_FEATURE_UPDATE_BIT); 388 + CLK_IS_CRITICAL, 389 + CCU_FEATURE_UPDATE_BIT); 389 390 390 391 static const struct clk_hw *mbus_hws[] = { &mbus_clk.common.hw }; 391 392