Skip to content

nvmem: support post read for U-Boot's "ethaddr"

Rafał Miłecki linux-arm-kernel linux-devicetree lkml u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cellsDocumentation/devicetree/bindings/nvmem/u-boot,env.yaml+6 -10 replies
2/3nvmem: core: support specifying both: cell raw data & post read lengthsdrivers/nvmem/core.c include/linux/nvmem-provider.h+9 -40 replies
3/3nvmem: u-boot-env: post-process "ethaddr" env variabledrivers/nvmem/Kconfig drivers/nvmem/u-boot-env.c+27 -00 replies

Reviews trailers per patch

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

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

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

Read the v2 thread

Cover letter [PATCH V2 0/3] nvmem: support post read for U-Boot's "ethaddr"

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

This change is required for NVMEM consumers to get expected MAC address from U-Boot env data variable "ethaddr".

To address some previous concerns:
1. Yes, U-Boot env binding & driver should be converted to NVMEM layout
2. My priority is to get working MAC rather than fancy DT syntax
3. I AM going to convert U-Boot env into layout later
4. This work DOESN'T conflict with layout migration
5. This code WILL stay during / after layout migration

My brain limitations don't allow me to handle everything at once, please let's review what I already have here.

Rafał Miłecki (3):
dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells
nvmem: core: support specifying both: cell raw data & post read
lengths
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                          | 11 +++++---
 drivers/nvmem/u-boot-env.c                    | 26 +++++++++++++++++++
 include/linux/nvmem-provider.h                |  2 ++
 5 files changed, 42 insertions(+), 5 deletions(-)
Signature · 1 line
2.34.1