All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] nvmem: cell post-processing & U-Boot env MAC support
@ 2023-02-22 17:22 ` Rafał Miłecki
  0 siblings, 0 replies; 29+ messages in thread
From: Rafał Miłecki @ 2023-02-22 17:22 UTC (permalink / raw)
  To: Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski
  Cc: Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Miquel Raynal, Michael Walle, gregkh, devicetree,
	linux-arm-kernel, linux-kernel, u-boot, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

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(-)

-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2023-03-10  9:28 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 17:22 [PATCH 0/4] nvmem: cell post-processing & U-Boot env MAC support Rafał Miłecki
2023-02-22 17:22 ` Rafał Miłecki
2023-02-22 17:22 ` [PATCH 1/4] nvmem: core: add per-cell post processing Rafał Miłecki
2023-02-22 17:22   ` Rafał Miłecki
2023-02-22 17:22 ` [PATCH 2/4] nvmem: core: allow nvmem_cell_post_process_t callbacks to adjust buffer Rafał Miłecki
2023-02-22 17:22   ` Rafał Miłecki
2023-03-09 10:12   ` Srinivas Kandagatla
2023-03-09 10:12     ` Srinivas Kandagatla
2023-03-09 10:32     ` Miquel Raynal
2023-03-09 10:32       ` Miquel Raynal
2023-03-09 10:53       ` Srinivas Kandagatla
2023-03-09 10:53         ` Srinivas Kandagatla
2023-03-09 11:23         ` Miquel Raynal
2023-03-09 11:23           ` Miquel Raynal
2023-03-09 11:44           ` Srinivas Kandagatla
2023-03-09 11:44             ` Srinivas Kandagatla
2023-03-09 11:52             ` Rafał Miłecki
2023-03-09 11:52               ` Rafał Miłecki
2023-03-09 13:10               ` Miquel Raynal
2023-03-09 13:10                 ` Miquel Raynal
2023-03-09 13:31                 ` Rafał Miłecki
2023-03-09 13:31                   ` Rafał Miłecki
2023-03-10  9:25               ` Srinivas Kandagatla
2023-03-10  9:25                 ` Srinivas Kandagatla
2023-02-22 17:22 ` [PATCH 3/4] dt-bindings: nvmem: u-boot,env: add MAC's #nvmem-cell-cells Rafał Miłecki
2023-02-22 17:22   ` [PATCH 3/4] dt-bindings: nvmem: u-boot, env: " Rafał Miłecki
2023-02-22 17:22   ` [PATCH 3/4] dt-bindings: nvmem: u-boot,env: " Rafał Miłecki
2023-02-22 17:22 ` [PATCH 4/4] nvmem: u-boot-env: post-process "ethaddr" env variable Rafał Miłecki
2023-02-22 17:22   ` Rafał Miłecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.