From: Vadym Kochan <vadym.kochan@plvision.eu>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Taras Chornyi <taras.chornyi@plvision.eu>,
Vadym Kochan <vadym.kochan@plvision.eu>
Subject: [PATCH v2 0/2] nvmem: add ONIE NVMEM cells provider
Date: Sat, 30 May 2020 02:04:49 +0300 [thread overview]
Message-ID: <20200529230451.21337-1-vadym.kochan@plvision.eu> (raw)
This series adds cells provider for the ONIE TLV attributes which are
stored on NVMEM device. It adds possibility to read the mac address (and
other info) by other drivers.
Driver needs to register NVMEM cells table for already registered
NVMEM device, this requires additional change to the core logic because
current logic only allows to add additional cells only before nvmem
device registration.
v2:
1) Fixed wrong memcmp comparison
Vadym Kochan (2):
nvmem: core: allow to register cells for existing device
nvmem: add ONIE NVMEM cells support
drivers/nvmem/Kconfig | 9 +
drivers/nvmem/Makefile | 3 +
drivers/nvmem/core.c | 59 ++++---
drivers/nvmem/onie-cells.c | 332 +++++++++++++++++++++++++++++++++++++
4 files changed, 381 insertions(+), 22 deletions(-)
create mode 100644 drivers/nvmem/onie-cells.c
--
2.17.1
next reply other threads:[~2020-05-29 23:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 23:04 Vadym Kochan [this message]
2020-05-29 23:04 ` [PATCH v2 1/2] nvmem: core: allow to register cells for existing device Vadym Kochan
2020-05-29 23:04 ` [PATCH v2 2/2] nvmem: add ONIE NVMEM cells support Vadym Kochan
2020-06-01 8:50 ` Srinivas Kandagatla
2020-06-01 9:03 ` Vadym Kochan
2020-06-01 9:13 ` Srinivas Kandagatla
2020-06-01 10:27 ` Vadym Kochan
2020-06-05 10:53 ` Vadym Kochan
2020-06-15 11:06 ` Srinivas Kandagatla
2020-08-14 11:56 ` Vadym Kochan
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=20200529230451.21337-1-vadym.kochan@plvision.eu \
--to=vadym.kochan@plvision.eu \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=taras.chornyi@plvision.eu \
/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
all inboxes | Powered by JetHome®