[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250710092135.61049-1-ziyao@disroot.org>
Date: Thu, 10 Jul 2025 09:21:33 +0000
From: Yao Zi <ziyao@...root.org>
To: Drew Fustini <fustini@...nel.org>,
Guo Ren <guoren@...nel.org>,
Fu Wei <wefu@...hat.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Jisheng Zhang <jszhang@...nel.org>,
Yangtao Li <frank.li@...o.com>
Cc: linux-riscv@...ts.infradead.org,
linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org,
Yao Zi <ziyao@...root.org>
Subject: [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/20250705052028.24611-1-ziyao@disroot.org/
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(-)
--
2.50.0
Powered by blists - more mailing lists