Re: [PATCH] clk: create write_enable file to control clk rate write and other dangerous ops permission

From: Stephen Boyd
Date: Wed Jan 11 2023 - 13:37:39 EST


Quoting Li Chen (2023-01-10 03:45:39)
> From: Li Chen <lchen@xxxxxxxxxxxxx>
>
> It's common requirement for bsp debug/test to change clk rate from userspace.
>
> Currently, we must define CLKOCK_ALLOW_WRITE_DEBUGFS then re-compile kernel
> to allow this feature. Let's replace it with a "write_enable" file to
> allow enable it at runtime.

Nak. This design is intentional.