diff options
author | Mike Tipton <mdtipton@codeaurora.org> | 2020-06-30 02:30:24 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-07-24 11:03:58 +0200 |
commit | 03111b1088f18f93d38e888c41e8a1e6aba9f8bb (patch) | |
tree | 1fb5683436669d697ff5000fde0dfd223967538b /drivers/clk/bcm | |
parent | Linux 5.8-rc1 (diff) | |
download | linux-03111b1088f18f93d38e888c41e8a1e6aba9f8bb.tar.xz linux-03111b1088f18f93d38e888c41e8a1e6aba9f8bb.zip |
clk: Add support for enabling/disabling clocks from debugfs
For test and debug purposes, it's simple enough to enable or disable
clocks from shell. Add a new debugfs file 'clk_prepare_enable' that
calls clk_prepare_enable() when writing "1" and clk_disable_unprepare()
when writing "0".
This can have security implications, so only support it when the code
has been modified to #define CLOCK_ALLOW_WRITE_DEBUGFS.
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Link: https://lore.kernel.org/r/20200630003024.6282-1-mdtipton@codeaurora.org
[sboyd@kernel.org: Reword commit text and remove comment update]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/bcm')
0 files changed, 0 insertions, 0 deletions