[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210103161632.GA3960550@robh.at.kernel.org>
Date: Sun, 3 Jan 2021 09:16:32 -0700
From: Rob Herring <robh@...nel.org>
To: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>
Cc: linux-kernel@...r.kernel.org, phil@...pberrypi.com,
tim.gover@...pberrypi.com, catalin.marinas@....com,
srinivas.kandagatla@...aro.org, devicetree@...r.kernel.org,
linux-rpi-kernel@...ts.infradead.org,
Frank Rowand <frowand.list@...il.com>, linux@...linux.org.uk,
bcm-kernel-feedback-list@...adcom.com,
linux-arm-kernel@...ts.infradead.org,
Rob Herring <robh+dt@...nel.org>, will@...nel.org
Subject: Re: [PATCH v2 2/5] nvmem: Add driver to expose reserved memory as
nvmem
On Fri, 18 Dec 2020 16:43:17 +0100, Nicolas Saenz Julienne wrote:
> Firmware/co-processors might use reserved memory areas in order to pass
> data stemming from an nvmem device otherwise non accessible to Linux.
> For example an EEPROM memory only physically accessible to firmware, or
> data only accessible early at boot time.
>
> In order to expose this data to other drivers and user-space, the driver
> models the reserved memory area as an nvmem device.
>
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>
>
> ---
>
> Changes since v1:
> - Remove reserved memory phandle indirection by directly creating a
> platform device from the reserved memory DT node
> - Only map memory upon reading it to avoid corruption
> - Small cosmetic cleanups
>
> drivers/nvmem/Kconfig | 8 ++++
> drivers/nvmem/Makefile | 2 +
> drivers/nvmem/rmem.c | 97 ++++++++++++++++++++++++++++++++++++++++++
> drivers/of/platform.c | 1 +
> 4 files changed, 108 insertions(+)
> create mode 100644 drivers/nvmem/rmem.c
>
Reviewed-by: Rob Herring <robh@...nel.org>
Powered by blists - more mailing lists