lkml.org 
[lkml]   [2023]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] clk: create write_enable file to control clk rate write and other dangerous ops permission
From
Date
Quoting Li Chen (2023-01-11 19:05:34)
> Hi Stephen,
> ---- On Thu, 12 Jan 2023 02:37:29 +0800 Stephen Boyd wrote ---
> > Quoting Li Chen (2023-01-10 03:45:39)
> > > From: Li Chen lchen@ambarella.com>
> > >
> > > 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.
>
> Thanks for your reply. Got it. But sometimes re-compile is somewhat low efficient. Is it acceptable to provide
> a write_enable to clk_core(not enable by default), and allow clk driver to enable it inside clk_ops->init
> via clk_hw->core->write_enable = 1?
>

No

\
 
 \ /
  Last update: 2023-03-26 23:38    [W:0.029 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site