Re: [PATCH v2 0/2] Add efuse driver for Ingenic JZ4780 SoC

From: Srinivas Kandagatla
Date: Tue Jan 02 2018 - 12:58:10 EST




On 02/01/18 16:17, PrasannaKumar Muralidharan wrote:
Hi Srinivas,

On 2 January 2018 at 17:31, Srinivas Kandagatla
<srinivas.kandagatla@xxxxxxxxxx> wrote:


On 28/12/17 21:29, Mathieu Malaterre wrote:

This patchset bring support for read-only access to the JZ4780 efuse as
found
on MIPS Creator CI20.

To keep the driver as simple as possible, it was not possible to re-use
most of
the nvmem core functionalities. This driver is not compatible with the
original

Can you explain a bit more on not able to re-use nvmem core?

If you are referring to adding nvmem cell entires in sysfs, This should
probably go in to nvmem core, rather that in individual providers.
This is one of the feature my todo list, will try to come up with some thing
soon.

We could not find a way to expose different sized segments using nvmem
framework. Do you have any pointers for this?

This does not exist at the moment, but it should be very much doable to add this functionality to nvmem core.

I will keep you loop if I manage to post this patch soon.

--srini
We were not aware of the fact that nvmem does not expose individual
cell entries in sysfs.

Regards,
PrasannaKumar