]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: spacemit: add platform SoC prefix to reset name
authorYixun Lan <dlan@gentoo.org>
Sat, 3 Jan 2026 06:14:36 +0000 (14:14 +0800)
committerYixun Lan <dlan@gentoo.org>
Fri, 9 Jan 2026 02:00:52 +0000 (10:00 +0800)
commit0664a46f93e2fb2f75fa05b5f08949600cce88f9
treeecda969ce9945518611465e6e05fa6c53ea4c8b1
parent99669468d24ce21be12f3751e7381c47ab2c9ecd
clk: spacemit: add platform SoC prefix to reset name

This change is needed for adding future new SpacemiT K3 reset driver.

Since both K1 and K3 reset code register via the same module which its
name changed to spacemit_ccu, it's necessary to encode the platform/SoC
in the reset auxiliary device name to distinguish them, otherwise two
reset drivers will claim to support same "compatible" auxiliary device
even in the case of only one CCU clock driver got registered, which in
the end lead to a broken reset driver.

This change will introduce a runtime break to reset driver, and will be
fixed in follow-up commit:
ecff77f7c041 ("reset: spacemit: fix auxiliary device id")

Link: https://lore.kernel.org/r/20260108-06-k1-clk-common-v4-3-badf635993d3@gentoo.org
Reviewed-by: Alex Elder <elder@riscstar.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
drivers/clk/spacemit/ccu-k1.c