[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230222172245.6313-1-zajec5@gmail.com>
Date: Wed, 22 Feb 2023 18:22:41 +0100
From: Rafał Miłecki <zajec5@...il.com>
To: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Cc: Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Michael Walle <michael@...le.cc>, gregkh@...uxfoundation.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, u-boot@...ts.denx.de,
Rafał Miłecki <rafal@...ecki.pl>
Subject: [PATCH 0/4] nvmem: cell post-processing & U-Boot env MAC support
From: Rafał Miłecki <rafal@...ecki.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
Powered by blists - more mailing lists