From: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
To: "Michal Simek" <michal.simek@amd.com>,
"Ovidiu Panait" <ovidiu.panait@windriver.com>,
"Simon Glass" <sjg@chromium.org>,
"Mario Six" <mario.six@gdsys.cc>,
"Masahisa Kojima" <masahisa.kojima@linaro.org>,
"Pali Rohár" <pali@kernel.org>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Ashok Reddy Soma" <ashok.reddy.soma@xilinx.com>,
"Thomas Huth" <thuth@redhat.com>,
"Huang Jianan" <jnhuang95@gmail.com>,
"Chris Morgan" <macromorgan@hotmail.com>,
"Roland Gaudig" <roland.gaudig@weidmueller.com>,
"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
"Alexandru Gagniuc" <mr.nuke.me@gmail.com>
Cc: "Jamie Iles" <quic_jiles@quicinc.com>,
"Graeme Gregory" <quic_ggregory@quicinc.com>,
"Cédric Le Goater" <clg@kaod.org>,
"Jae Hyun Yoo" <quic_jaehyoo@quicinc.com>,
u-boot@lists.denx.de
Subject: [PATCH v3 0/7] cmd/fru: move FRU handling support to common region
Date: Tue, 23 Aug 2022 14:52:53 -0700 [thread overview]
Message-ID: <20220823215300.1485789-1-quic_jaehyoo@quicinc.com> (raw)
Hello,
The FRU handling was added as a Xilinx board dependent support but it
is also useful for other boards, so this commit moves the FRU handling
support to the common region so that it can be enabled by CONFIG_CMD_FRU.
To provide manufacturer specific custom info fields and multi-records
parsing, it refactors the FRU handling logic using linked list so that each
board support can utilize them in their own custom way. This series adds
'Product Info' parsing support, usage document and unit test script too.
Please review!
Thanks,
Jae
Graeme Gregory (1):
cmd: fru: move FRU handling support to common region
Jae Hyun Yoo (6):
xilinx: common: refactor FRU handling support
cmd: fru: fix a sandbox segfault issue
cmd: fru: add product info area parsing support
doc: fru: add documentation for the fru command and APIs
test: py: fru: add a test for the fru command
test: cmd: fru: add unit test for the fru command
board/xilinx/Kconfig | 8 -
board/xilinx/common/Makefile | 3 -
board/xilinx/common/board.c | 68 ++-
board/xilinx/common/fru.h | 108 -----
board/xilinx/common/fru_ops.c | 415 -----------------
cmd/Kconfig | 8 +
cmd/Makefile | 1 +
{board/xilinx/common => cmd}/fru.c | 54 ++-
configs/sandbox_defconfig | 1 +
doc/usage/cmd/fru.rst | 144 ++++++
doc/usage/index.rst | 1 +
include/fru.h | 328 +++++++++++++
include/test/suites.h | 1 +
lib/Makefile | 1 +
lib/fru_ops.c | 725 +++++++++++++++++++++++++++++
test/cmd/Makefile | 1 +
test/cmd/fru.c | 84 ++++
test/cmd_ut.c | 6 +
test/py/tests/test_fru.py | 47 ++
19 files changed, 1447 insertions(+), 557 deletions(-)
delete mode 100644 board/xilinx/common/fru.h
delete mode 100644 board/xilinx/common/fru_ops.c
rename {board/xilinx/common => cmd}/fru.c (50%)
create mode 100644 doc/usage/cmd/fru.rst
create mode 100644 include/fru.h
create mode 100644 lib/fru_ops.c
create mode 100644 test/cmd/fru.c
create mode 100644 test/py/tests/test_fru.py
--
2.25.1
next reply other threads:[~2022-08-23 21:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-23 21:52 Jae Hyun Yoo [this message]
2022-08-23 21:52 ` [PATCH v3 1/7] xilinx: common: refactor FRU handling support Jae Hyun Yoo
2022-08-23 21:52 ` [PATCH v3 2/7] cmd: fru: move FRU handling support to common region Jae Hyun Yoo
2022-08-23 21:52 ` [PATCH v3 3/7] cmd: fru: fix a sandbox segfault issue Jae Hyun Yoo
2022-08-23 21:52 ` [PATCH v3 4/7] cmd: fru: add product info area parsing support Jae Hyun Yoo
2022-08-25 1:25 ` Simon Glass
2022-08-25 14:33 ` Jae Hyun Yoo
2022-08-25 15:08 ` Simon Glass
2022-08-23 21:52 ` [PATCH v3 5/7] doc: fru: add documentation for the fru command and APIs Jae Hyun Yoo
2022-08-23 21:52 ` [PATCH v3 6/7] test: py: fru: add a test for the fru command Jae Hyun Yoo
2022-08-25 1:25 ` Simon Glass
2022-08-25 14:35 ` Jae Hyun Yoo
2022-08-23 21:53 ` [PATCH v3 7/7] test: cmd: fru: add unit " Jae Hyun Yoo
2022-08-25 1:25 ` Simon Glass
2022-08-25 14:34 ` Jae Hyun Yoo
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=20220823215300.1485789-1-quic_jaehyoo@quicinc.com \
--to=quic_jaehyoo@quicinc.com \
--cc=ashok.reddy.soma@xilinx.com \
--cc=clg@kaod.org \
--cc=jnhuang95@gmail.com \
--cc=macromorgan@hotmail.com \
--cc=mario.six@gdsys.cc \
--cc=masahisa.kojima@linaro.org \
--cc=michal.simek@amd.com \
--cc=mr.nuke.me@gmail.com \
--cc=ovidiu.panait@windriver.com \
--cc=pali@kernel.org \
--cc=patrick.delaunay@foss.st.com \
--cc=quic_ggregory@quicinc.com \
--cc=quic_jiles@quicinc.com \
--cc=roland.gaudig@weidmueller.com \
--cc=sjg@chromium.org \
--cc=thuth@redhat.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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).