Messages in this thread | | | Subject | Re: [PATCH v1 0/3] nvmem: Add support for write-only instances, and clean-up | From | Srinivas Kandagatla <> | Date | Tue, 25 Feb 2020 17:04:25 +0000 |
| |
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
| |