summaryrefslogtreecommitdiff
path: root/drivers/clk/actions/owl-s500.c
diff options
context:
space:
mode:
authorMike Tipton <mdtipton@codeaurora.org>2020-06-30 03:30:24 +0300
committerStephen Boyd <sboyd@kernel.org>2020-07-24 12:03:58 +0300
commit03111b1088f18f93d38e888c41e8a1e6aba9f8bb (patch)
tree1fb5683436669d697ff5000fde0dfd223967538b /drivers/clk/actions/owl-s500.c
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
downloadlinux-03111b1088f18f93d38e888c41e8a1e6aba9f8bb.tar.xz
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/actions/owl-s500.c')
0 files changed, 0 insertions, 0 deletions