Re: [PATCH] nvmem: layouts: u-boot-env: remove ethaddr check

From: Miquel Raynal

Date: Wed Apr 29 2026 - 03:40:08 EST


Hi Rosen,

> --- a/drivers/nvmem/layouts/u-boot-env.c
> +++ b/drivers/nvmem/layouts/u-boot-env.c
> @@ -75,11 +75,9 @@ static int u_boot_env_parse_cells(struct device *dev, struct nvmem_device *nvmem
> info.offset = data_offset + value - data;
> info.bytes = strlen(value);
> info.np = of_get_child_by_name(dev->of_node, info.name);
> - if (!strcmp(var, "ethaddr")) {
> - info.raw_len = strlen(value);
> - info.bytes = ETH_ALEN;
> - info.read_post_process = u_boot_env_read_post_process_ethaddr;
> - }
> + info.raw_len = strlen(value);
> + info.bytes = ETH_ALEN;

How do you know this is a MAC address?

Thanks,
Miquèl