lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fd7cf2d0-b115-a13b-7056-0b96fc14b618@linaro.org>
Date:   Fri, 16 Sep 2022 10:57:13 +0100
From:   Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To:     Rafał Miłecki <zajec5@...il.com>
Cc:     Tom Rini <trini@...sulko.com>, Michael Walle <michael@...le.cc>,
        linux-arm-kernel@...ts.infradead.org, u-boot@...ts.denx.de,
        linux-kernel@...r.kernel.org,
        Rafał Miłecki <rafal@...ecki.pl>
Subject: Re: [PATCH] nvmem: u-boot-env: find Device Tree nodes for NVMEM cells



On 15/09/2022 21:06, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@...ecki.pl>
> 
> DT binding allows specifying NVMEM cells as NVMEM device (provider)
> subnodes. Looks for such subnodes when building NVMEM cells.
> 
> This allows NVMEM consumers to use U-Boot environment variables.
> 
> Signed-off-by: Rafał Miłecki <rafal@...ecki.pl>

Applied thanks,

--srini
> ---
>   drivers/nvmem/u-boot-env.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/nvmem/u-boot-env.c b/drivers/nvmem/u-boot-env.c
> index 9b9abfb8f187..d17a164ae705 100644
> --- a/drivers/nvmem/u-boot-env.c
> +++ b/drivers/nvmem/u-boot-env.c
> @@ -92,6 +92,7 @@ static int u_boot_env_add_cells(struct u_boot_env *priv, uint8_t *buf,
>   			return -ENOMEM;
>   		priv->cells[idx].offset = data_offset + value - data;
>   		priv->cells[idx].bytes = strlen(value);
> +		priv->cells[idx].np = of_get_child_by_name(dev->of_node, priv->cells[idx].name);
>   	}
>   
>   	if (WARN_ON(idx != priv->ncells))

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ