Re: [PATCH v1 0/3] nvmem: Add support for write-only instances, and clean-up

From: Srinivas Kandagatla
Date: Tue Feb 25 2020 - 12:04:31 EST




On 25/02/2020 15:23, Nicholas Johnson wrote:
Why can not we add a check for reg_read in bin_attr_nvmem_read() before
dereferencing it?
That can be easily done in PATCH v2. What error code should be returned?

-EPERM should be good in this case indicating Operation not permitted for implementation reasons!

--srini