Skip to content

nvmem: cell post-processing & U-Boot env MAC support

Rafał Miłecki linux-arm-kernel linux-devicetree lkml u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nvmem: core: add per-cell post processingdrivers/nvmem/core.c include/linux/nvmem-provider.h+20 -00 replies
2/4nvmem: core: allow nvmem_cell_post_process_t callbacks to adjust bufferdrivers/nvmem/core.c drivers/nvmem/imx-ocotp.c include/linux/nvmem-provider.h+20 -159 replies
3/4dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cellsDocumentation/devicetree/bindings/nvmem/u-boot,env.yaml+6 -10 replies
4/4nvmem: u-boot-env: post-process "ethaddr" env variabledrivers/nvmem/Kconfig drivers/nvmem/u-boot-env.c+26 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] nvmem: cell post-processing & U-Boot env MAC support

From: Rafał Miłecki <[email protected]>

U-Boot environment variables are stored using ASCII format. One of important entries is "ethaddr" which contains base MAC address.

That NVMEM cell requires some extra processing when reading:
1. ASCII needs translating into binary MAC format
2. Final MAC needs to be calculated depending on cell index

This patchset was originally based on top of layouts implementation which sadly ended up dropped for now. To proceed I rebased it on top of the current NVMEM subsystem code. Michael's patch has applied cleanly and this approach *will not* make U-Boot env transition to layouts any harder so I believe it's fine to take those patches without waiting for layouts updated implementation.

Michael Walle (1):
nvmem: core: add per-cell post processing

Rafał Miłecki (3):
nvmem: core: allow nvmem_cell_post_process_t callbacks to adjust
buffer
dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells
nvmem: u-boot-env: post-process "ethaddr" env variable

 .../devicetree/bindings/nvmem/u-boot,env.yaml |  7 +++-
 drivers/nvmem/Kconfig                         |  1 +
 drivers/nvmem/core.c                          | 38 +++++++++++++++----
 drivers/nvmem/imx-ocotp.c                     |  8 ++--
 drivers/nvmem/u-boot-env.c                    | 25 ++++++++++++
 include/linux/nvmem-provider.h                |  7 +++-
 6 files changed, 71 insertions(+), 15 deletions(-)
Signature · 1 line
2.34.1