summaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven2018-01-03 12:06:16 +0100
committerStephen Boyd2018-01-10 22:13:22 +0100
commita6059ab98130fb561157682d320c51c5ccd4b647 (patch)
treee990364caee2d7c1eac84fe200a490201c04cb3c /include/linux/clk-provider.h
parentclk: Improve flags doc for of_clk_detect_critical() (diff)
downloadkernel-qcow2-linux-a6059ab98130fb561157682d320c51c5ccd4b647.tar.gz
kernel-qcow2-linux-a6059ab98130fb561157682d320c51c5ccd4b647.tar.xz
kernel-qcow2-linux-a6059ab98130fb561157682d320c51c5ccd4b647.zip
clk: Show symbolic clock flags in debugfs
Currently the virtual "clk_flags" file in debugfs shows the numeric value of the top-level framework flags for the specified clock. Hence the user must manually interpret these values. Moreover, on big-endian 64-bit systems, the wrong half of the value is shown, due to the cast from "unsigned long *" to "u32 *". Fix both issues by showing the symbolic flag names instead. Any non-standard flags are shown as a hex number. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 73ac87f34df9..c8236e948659 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -20,6 +20,8 @@
* flags used across common struct clk. these flags should only affect the
* top-level framework. custom flags for dealing with hardware specifics
* belong in struct clk_foo
+ *
+ * Please update clk_flags[] in drivers/clk/clk.c when making changes here!
*/
#define CLK_SET_RATE_GATE BIT(0) /* must be gated across rate change */
#define CLK_SET_PARENT_GATE BIT(1) /* must be gated across re-parent */