Skip to contentSkip to conversation

Immutable tag between SpacemiT's reset and clock trees for v6.17

GIT PULL Yixun Lan 2 participants 5 messages Jul 3, 2025 – Jul 7, 2025

Subsystems (3)
lore
Share & tools
lore

Yixun Lan

author
#0 lore raw

Hi Philipp,

Please pull the following change into the reset tree. This allows you to apply the patch 5 of the SpacemiT reset driver [1].

Thanks,
Yixun Lan

The following changes since commit 19272b37aa4f83ca52bdf9c16d5d81bdd1354494:

Linux 6.16-rc1 (2025-06-08 13:44:43 -0700)

are available in the Git repository at:

https://github.com/spacemit-com/linux tags/spacemit-reset-binding-for-6.17-1

for you to fetch changes up to 25a59e813cd2ca728047f657d64f9b29480be393:

dt-bindings: soc: spacemit: define spacemit,k1-ccu resets (2025-07-03 22:16:08 +0800)

----------------------------------------------------------------
RISC-V SpacemiT Binding for 6.17

- Reset DT Binding for K1 SoC

----------------------------------------------------------------
Alex Elder (1):
dt-bindings: soc: spacemit: define spacemit,k1-ccu resets

 .../bindings/soc/spacemit/spacemit,k1-syscon.yaml  |  27 +++-
 include/dt-bindings/clock/spacemit,k1-syscon.h     | 141 +++++++++++++++++++++
 2 files changed, 162 insertions(+), 6 deletions(-)
#1 lore raw
Quoted 9 lines · Yixun Lan

Hi Philipp,

Please pull the following change into the reset tree. This allows you to apply the patch 5 of the SpacemiT reset driver [1].

Thanks,
Yixun Lan

Sorry I didn't notice before, this is missing k1-syscon.h from Patch 2.
Can we get a clock maintainer ack to place patch 2 in the shared tag as well? Otherwise you could split patch 2 into soc and clk parts.

regards
Philipp

author
#2 lore raw

Hi Philipp,

Quoted 6 lines · Philipp Zabel
Quoted 5 lines · Yixun Lan

Hi Philipp,

Please pull the following change into the reset tree. This allows you to apply the patch 5 of the SpacemiT reset driver [1].

Quoted 7 lines
Quoted 4 lines

Thanks,
Yixun Lan

Sorry I didn't notice before, this is missing k1-syscon.h from Patch 2.

no problem

Quoted 2 lines

Can we get a clock maintainer ack to place patch 2 in the shared tag as well? Otherwise you could split patch 2 into soc and clk parts.

for the ack, I'd assume Stephen have no objection (Cc him explicitly)

technically, there is no problem to place more patches in the shared tag, since the tag will be both sent(by me) to clock and reset tree, so no conflicts in the end.

if you expect to at least pass compiling test with patch 5 in reset branch only, then patch 1, 2, 3 should be included, otherwise need to pull clk branch for additional dependency patches.

I would propose to have shared tag to include patch 1-4, then you can pick patch 5, in this way, it should both pass all tests (both compile-time and run-time)

what do you think?

Signature · 1 line
Yixun Lan (dlan)
#3 lore raw
Quoted 22 lines · Yixun Lan

Hi Philipp,

Quoted 6 lines · Philipp Zabel
Quoted 5 lines · Yixun Lan

Hi Philipp,

Please pull the following change into the reset tree. This allows you to apply the patch 5 of the SpacemiT reset driver [1].

Quoted 7 lines
Quoted 4 lines

Thanks,
Yixun Lan

Sorry I didn't notice before, this is missing k1-syscon.h from Patch 2.

no problem

Quoted 2 lines

Can we get a clock maintainer ack to place patch 2 in the shared tag as well? Otherwise you could split patch 2 into soc and clk parts.

for the ack, I'd assume Stephen have no objection (Cc him explicitly)

Quoted 7 lines

technically, there is no problem to place more patches in the shared tag, since the tag will be both sent(by me) to clock and reset tree, so no conflicts in the end.

if you expect to at least pass compiling test with patch 5 in reset branch only, then patch 1, 2, 3 should be included, otherwise need to pull clk branch for additional dependency patches.

3 as well? Oh, that's for struct spacemit_ccu_adev. IMHO this patch series is not well structured for applying across trees. This should have been a single patch that adds include/soc/spacemit/k1-syscon.h, to be shared by both clk and reset trees, and no other dependencies between clk and reset patches for this to work well.

Quoted 3 lines

I would propose to have shared tag to include patch 1-4, then you can pick patch 5, in this way, it should both pass all tests (both compile-time and run-time)would would

Since this is a new driver, passing run-time tests is not a concern. Compile-time is, since that would break bisectability for everyone.

Quoted 1 line

what do you think?

I feel like it's easier and safer for the whole series to be merged via the clk tree. Since this adds a new reset driver, the only possible merge conflicts are trivial ones in drivers/reset/{Kconfig,Makefile}.

regards
Philipp

author
#4 lore raw

Hi Philipp,

Quoted 31 lines · Philipp Zabel
Quoted 22 lines · Yixun Lan

Hi Philipp,

Quoted 6 lines · Philipp Zabel
Quoted 5 lines · Yixun Lan

Hi Philipp,

Please pull the following change into the reset tree. This allows you to apply the patch 5 of the SpacemiT reset driver [1].

Quoted 7 lines
Quoted 4 lines

Thanks,
Yixun Lan

Sorry I didn't notice before, this is missing k1-syscon.h from Patch 2.

no problem

Quoted 2 lines

Can we get a clock maintainer ack to place patch 2 in the shared tag as well? Otherwise you could split patch 2 into soc and clk parts.

for the ack, I'd assume Stephen have no objection (Cc him explicitly)

Quoted 7 lines

technically, there is no problem to place more patches in the shared tag, since the tag will be both sent(by me) to clock and reset tree, so no conflicts in the end.

if you expect to at least pass compiling test with patch 5 in reset branch only, then patch 1, 2, 3 should be included, otherwise need to pull clk branch for additional dependency patches.

Quoted 5 lines

3 as well? Oh, that's for struct spacemit_ccu_adev. IMHO this patch series is not well structured for applying across trees. This should have been a single patch that adds include/soc/spacemit/k1-syscon.h, to be shared by both clk and reset trees, and no other dependencies between clk and reset patches for this to work well.

I feel this is much difficult, e.g. the patch 2 touches both drivers/clk and include/soc/spacemit/k1-syscon.h - moving definitions, and splitting into two patches sounds weird

Quoted 8 lines
Quoted 4 lines

I would propose to have shared tag to include patch 1-4, then you can pick patch 5, in this way, it should both pass all tests (both compile-time and run-time)would would

Since this is a new driver, passing run-time tests is not a concern. Compile-time is, since that would break bisectability for everyone.

make sense

Quoted 6 lines
Quoted 1 line

what do you think?

I feel like it's easier and safer for the whole series to be merged via the clk tree. Since this adds a new reset driver, the only possible merge conflicts are trivial ones in drivers/reset/{Kconfig,Makefile}.

ok, I agree, then let's route the whole series via clk tree, and I assume Stephen is fine with this, since it's indeed much simple.

thanks

Signature · 1 line
Yixun Lan (dlan)