From: Rob Herring <robh@kernel.org>
To: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Cc: linux-kernel@vger.kernel.org, phil@raspberrypi.com,
tim.gover@raspberrypi.com, catalin.marinas@arm.com,
srinivas.kandagatla@linaro.org, devicetree@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
Frank Rowand <frowand.list@gmail.com>,
linux@armlinux.org.uk, bcm-kernel-feedback-list@broadcom.com,
linux-arm-kernel@lists.infradead.org,
Rob Herring <robh+dt@kernel.org>,
will@kernel.org
Subject: Re: [PATCH v2 2/5] nvmem: Add driver to expose reserved memory as nvmem
Date: Sun, 3 Jan 2021 09:16:32 -0700 [thread overview]
Message-ID: <20210103161632.GA3960550@robh.at.kernel.org> (raw)
In-Reply-To: <20201218154320.28368-3-nsaenzjulienne@suse.de>
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@suse.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@kernel.org>
next prev parent reply other threads:[~2021-01-03 16:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-18 15:43 [PATCH v2 0/5] Expose RPi4's bootloader configuration Nicolas Saenz Julienne
2020-12-18 15:43 ` [PATCH v2 1/5] dt-bindings: nvmem: Add bindings for rmem driver Nicolas Saenz Julienne
2020-12-21 16:10 ` Rob Herring
2020-12-18 15:43 ` [PATCH v2 2/5] nvmem: Add driver to expose reserved memory as nvmem Nicolas Saenz Julienne
2021-01-03 16:16 ` Rob Herring [this message]
2020-12-18 15:43 ` [PATCH v2 3/5] ARM: dts: bcm2711: Add reserved memory template to hold firmware configuration Nicolas Saenz Julienne
2020-12-18 15:43 ` [PATCH v2 4/5] arm64: defconfig: Enable nvmem's rmem driver Nicolas Saenz Julienne
2020-12-18 15:43 ` [PATCH v2 5/5] ARM: multi_v7_defconfig: " Nicolas Saenz Julienne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210103161632.GA3960550@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=nsaenzjulienne@suse.de \
--cc=phil@raspberrypi.com \
--cc=robh+dt@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tim.gover@raspberrypi.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).