[PATCH 0/2] clk: spacemit: k3: set few clocks as critical

From: Yixun Lan

Date: Tue Jun 30 2026 - 04:56:49 EST


Some clocks in K3 SoC need to set the critical flag so it will never
get these clocks closed.
The HDMA clock provides the clock source for internal TCM access path
of X100 RISC-V core, and from the real test case, shut down this clock
will cause whole Linux system hang in a quite minimal environment with
only ethernet, UFS modules enabled.
The RCPU clock is needed for RCPUs which are two RT24 RISC-V cores and
it's responisble for running ESOS instance. ESOS should be always kept
running behind Linux, so set it as critical flag to prevent it from being
shut off.

This issue was reported-by Han Gao off line, and I didn't discover this
due to 'clk_ignore_unused' kernel flag was enabled.

Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
---
Yixun Lan (2):
clk: spacemit: k3: set hdma clock as critical
clk: spacemit: k3: set rcpu clock as critical

drivers/clk/spacemit/ccu-k3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260611-06-clk-hdma-critial-4b56abb70691

Best regards,
--
Yixun Lan <dlan@xxxxxxxxxx>