lkml.org 
[lkml]   [2019]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] nvmem: core: Set no-read-write provider to avoid userspace read/write
From
Date


On 17/03/2019 14:12, Gaurav Kohli wrote:
> Current nvmem framework allows user space to read all register space
> populated by nvmem binary file, In case we don't want to expose value
> of registers to userspace and only want kernel space to read cell
> value from nvmem_cell_read_u32.
>
> To protect the same, Add no-read-write property to prevent read
> from userspace.
>

Can you explain the real need of this?
Is there any issue you are noticing while reading nvmem content from
userspace?

I don't think this is the right way to do this, its misleading in many
ways. Also this should not be a part of DT binding.

If we decide that we need this feature, then better way to do this using
a new Kernel config.

thanks,
srini

\
 
 \ /
  Last update: 2019-03-20 15:35    [W:0.058 / U:26.084 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site