[PATCH 0/3] nvmem: Add cell post processing support

From: Srinivas Kandagatla
Date: Wed Oct 06 2021 - 10:47:43 EST


This patch set aims at providing nvmem cell post processing support.
cell post processing is required on some provider drivers as the data
is stored in encoded format that is not what consumer drivers are expecting,
example mac-address is stored in ascii or with delimiter or in reverse order.

This is much specific to vendor, this patchset would allow nvmem provider
drivers to post-process this before consumers sees the data.

First patch is to rework nvmem cell instance creation, which will help in
creating nvmem cell instances dynamically and associate a name with it.

Next to patches are adding post-processing callback and using it in imx driver.

thanks,
srini

Srinivas Kandagatla (3):
nvmem: core: rework nvmem cell instance creation
nvmem: core: add nvmem cell post processing callback
nvmem: imx-ocotp: add support for post processing

drivers/nvmem/core.c | 149 ++++++++++++++++++++++-----------
drivers/nvmem/imx-ocotp.c | 25 ++++++
include/linux/nvmem-provider.h | 5 ++
3 files changed, 132 insertions(+), 47 deletions(-)

--
2.21.0