Am guessing these are some kind of keys or something that you do not want user to see.
On 3/20/2019 8:04 PM, Srinivas Kandagatla wrote:
Hi Srinivas,
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?
No, We are not observing any issue, nvmem is dumping the data properly.
But there are certain register, which we don't want to expose to user space and want kernel space can only read via nvmem_cell_read.
In existing design, even if we read cell from kernel space, nvmem binary files is still populated to user space unconditionally.
Regards
Gaurav