aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorMike Tipton <[email protected]>2020-06-30 00:30:24 +0000
committerStephen Boyd <[email protected]>2020-07-24 09:03:58 +0000
commit03111b1088f18f93d38e888c41e8a1e6aba9f8bb (patch)
tree1fb5683436669d697ff5000fde0dfd223967538b /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentLinux 5.8-rc1 (diff)
downloadkernel-03111b1088f18f93d38e888c41e8a1e6aba9f8bb.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] [[email protected]: Reword commit text and remove comment update] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions