[PW_SID:992135] clk: thead: th1520-ap: allow gate cascade and fix padctrl0 - #787
[PW_SID:992135] clk: thead: th1520-ap: allow gate cascade and fix padctrl0#787linux-riscv-bot wants to merge 2 commits into
Conversation
Similar to previous situation of mux clocks, the gate clocks of clk-th1520-ap drivers are also using a helper that creates a temporary struct clk_hw and abandons the struct clk_hw in struct ccu_common, which prevents clock gates to be clock parents. Do the similar refactor of dropping struct ccu_common and directly use struct clk_gate here. This patch mimics the refactor done on struct ccu_mux at [1]. [1] https://lore.kernel.org/all/20250722080535.60027-2-ziyao@disroot.org/ Fixes: ae81b69 ("clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks") Signed-off-by: Icenowy Zheng <uwu@icenowy.me> Reviewed-by: Drew Fustini <fustini@kernel.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The padctrl0 clock seems to be a child of the perisys_apb4_hclk clock, gating the later makes padctrl0 registers stuck too. Fix this relationship. Fixes: ae81b69 ("clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks") Signed-off-by: Icenowy Zheng <uwu@icenowy.me> Reviewed-by: Drew Fustini <fustini@kernel.org> Reviewed-by: Troy Mitchell <troy.mitchell@linux.dev> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 1: "[v2,1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
|
Patch 2: "[v2,2/2] clk: thead: th1520-ap: fix parent of padctrl0 clock" |
PR for series 992135 applied to workflow__riscv__fixes
Name: clk: thead: th1520-ap: allow gate cascade and fix padctrl0
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=992135
Version: 2