linux/drivers/nvmem/layouts
Jascha Sundaresan 5b2f8c133d nvmem: layouts: u-boot-env: add optional "env-size" property
Some devices reserve a larger NVMEM region for the U-Boot environment
than the actual environment data length used by U-Boot itself. The CRC32
in the U-Boot header is calculated over the smaller data length, causing
CRC validation to fail when Linux reads the full partition.

Allow an optional device tree property "env-size" to specify the
environment data size to use for CRC computation.

v2: add missing $ref line to DT binding

Signed-off-by: Jascha Sundaresan <flizarthanon@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://patch.msgid.link/20251114110636.143268-5-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-11-24 18:06:22 +01:00
..
Kconfig nvmem: layouts: add U-Boot env layout 2024-09-11 16:05:15 +02:00
Makefile nvmem: layouts: add U-Boot env layout 2024-09-11 16:05:15 +02:00
onie-tlv.c nvmem: layouts: onie-tlv: drop driver owner initialization 2024-05-03 07:26:38 +02:00
sl28vpd.c nvmem: layouts: sl28vpd: drop driver owner initialization 2024-05-03 07:26:38 +02:00
u-boot-env.c nvmem: layouts: u-boot-env: add optional "env-size" property 2025-11-24 18:06:22 +01:00
u-boot-env.h nvmem: layouts: add U-Boot env layout 2024-09-11 16:05:15 +02:00