]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
clk: Show symbolic clock flags in debugfs
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 3 Jan 2018 11:06:16 +0000 (12:06 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 10 Jan 2018 21:13:22 +0000 (13:13 -0800)
commita6059ab98130fb561157682d320c51c5ccd4b647
treee990364caee2d7c1eac84fe200a490201c04cb3c
parentf7ae75036762618ecc2cc7ae6fb4f6a74af92afb
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>
drivers/clk/clk.c
include/linux/clk-provider.h