Skip to content

Commit 54d85d6

Browse files
masneybJonathan Corbet
authored andcommitted
docs: clk: add documentation to log which clocks have been disabled
The existing clk documentation has a section that talks about the clk_ignore_unused kernel parameter. Add additional documentation that describes how to log which clocks the kernel disables on bootup. This will log messages like the following to the console on bootup: [ 1.268115] clk: Disabling unused clocks [ 1.272167] clk_disable: gcc_usb_clkref_en [ 1.276389] clk_disable: gcc_usb30_sec_sleep_clk [ 1.281131] clk_disable: gcc_usb30_prim_sleep_clk ... Signed-off-by: Brian Masney <bmasney@redhat.com> Link: https://lore.kernel.org/r/20230411192153.289688-1-bmasney@redhat.com [jc: turned parameters into a literal block] Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c9b951c commit 54d85d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Documentation/driver-api/clk.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ clocks properly but rely on them being on from the bootloader, bypassing
258258
the disabling means that the driver will remain functional while the issues
259259
are sorted out.
260260

261+
You can see which clocks have been disabled by booting your kernel with these
262+
parameters::
263+
264+
tp_printk trace_event=clk:clk_disable
265+
261266
To bypass this disabling, include "clk_ignore_unused" in the bootargs to the
262267
kernel.
263268

0 commit comments

Comments
 (0)