Re: [PATCH v0] nvmem: core: Export nvmem cell info to userspace

From: Srinivas Kandagatla
Date: Fri Mar 22 2019 - 11:23:54 EST




On 20/03/2019 05:53, Gaurav Kohli wrote:
From: Shiraz Hashim <shashim@xxxxxxxxxxxxxx>

Existing nvmem framework export full register space
as nvmem binary, but not exporting child node of nvmem
which is nvmem cell. Kernel can read the specific cell
by using nvmem_cell_read but userspace don't have such
provision.

Add framework to export nvmem cell as well, So
userspace can use it directly.

Signed-off-by: Shiraz Hashim <shashim@xxxxxxxxxxxxxx>
Signed-off-by: Gaurav Kohli <gkohli@xxxxxxxxxxxxxx>
Co-developed-by: Gaurav Kohli <gkohli@xxxxxxxxxxxxxx>

diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c

Thankyou for the patch.

Why do you need such provision when the userspace can just get the cell values using correct offset and size.
This will also bring over head of managing entries dynamically + confusing userspace abi.

Unless you have a valid reason or usecase I don't see the need for this.

thanks,
srini