Skip to content

Fix orphan clocks in clk-th1520-ap driver

Yao Zi linux-clk linux-riscv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- Split the two fixes into separate patches
- Add a static qualifier for the new definition of osc_12m
- Link to v1: https://lore.kernel.org/all/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2clk: thead: th1520-ap: Correctly refer the parent of osc_12mdrivers/clk/thead/clk-th1520-ap.c+8 -12 replies
2/2clk: thead: th1520-ap: Correctly refer the parent of c910-i0drivers/clk/thead/clk-th1520-ap.c+1 -12 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDrew Fustini
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix orphan clocks in clk-th1520-ap driver

clk_orphan_dump shows two suspicious orphan clocks on TH1520 when booting the kernel with mainline U-Boot,

        $ cat /sys/kernel/debug/clk/clk_orphan_dump | jq 'keys'
        [
          "c910",
          "osc_12m"
        ]

where the correct parents should be c910-i0 for c910, and osc_24m for osc_12m.

Note that the c910's case cannot be reproduced with vendor U-Boot, which always reparents c910 to its second parent, cpu-pll1. Another way to confirm the bug is to examine /sys/kernel/debug/clk/c910/clk_possible_parents, which obviously doesn't match c910's definition.

This series corrects the parent description of these two clocks to eliminate the orphans.

Changed from v1
- Split the two fixes into separate patches
- Add a static qualifier for the new definition of osc_12m
- Link to v1: https://lore.kernel.org/all/[email protected]/

Thanks for your time and review.

Yao Zi (2):
clk: thead: th1520-ap: Correctly refer the parent of osc_12m
clk: thead: th1520-ap: Correctly refer the parent of c910-i0

 drivers/clk/thead/clk-th1520-ap.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.50.0