-EPERM should be good in this case indicating Operation not permitted for implementation reasons!Why can not we add a check for reg_read in bin_attr_nvmem_read() beforeThat can be easily done in PATCH v2. What error code should be returned?
dereferencing it?