clk: Add support for setting clk_rate via debugfs
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 28 Aug 2019 13:23:06 +0000 (15:23 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 6 Jan 2020 03:12:58 +0000 (19:12 -0800)
commit37215da5553eb00616291a82decb958bb2d98fc1
treeba6716cd3047ea4dae77349c36a91ff83b3c30ba
parente42617b825f8073569da76dc4510bfa019b1c35a
clk: Add support for setting clk_rate via debugfs

For testing, it is useful to be able to specify a clock rate manually.
As this is a dangerous feature, it is not enabled by default.
Users need to modify the source directly and #define
CLOCK_ALLOW_WRITE_DEBUGFS.

This follows the spirit of commit 09c6ecd394105c48 ("regmap: Add support
for writing to regmap registers via debugfs").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lkml.kernel.org/r/20190828132306.19012-1-geert+renesas@glider.be
Suggested-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c