u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/6] cmd/fru: move FRU handling support to common region
@ 2022-08-25 16:42 Jae Hyun Yoo
  2022-08-25 16:42 ` [PATCH v4 1/6] xilinx: common: refactor FRU handling support Jae Hyun Yoo
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Jae Hyun Yoo @ 2022-08-25 16:42 UTC (permalink / raw)
  To: Michal Simek, Ovidiu Panait, Simon Glass, Mario Six,
	Masahisa Kojima, Pali Rohár, Heinrich Schuchardt,
	Ashok Reddy Soma, Thomas Huth, Huang Jianan, Chris Morgan,
	Roland Gaudig, Patrick Delaunay, Alexandru Gagniuc
  Cc: Jamie Iles, Graeme Gregory, Cédric Le Goater, Jae Hyun Yoo, u-boot

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 (5):
  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: 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 ++-
 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                      | 724 +++++++++++++++++++++++++++++
 test/cmd/Makefile                  |   1 +
 test/cmd/fru.c                     |  84 ++++
 test/cmd_ut.c                      |   6 +
 17 files changed, 1398 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

-- 
2.25.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-09-22 16:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 16:42 [PATCH v4 0/6] cmd/fru: move FRU handling support to common region Jae Hyun Yoo
2022-08-25 16:42 ` [PATCH v4 1/6] xilinx: common: refactor FRU handling support Jae Hyun Yoo
2022-09-21 13:40   ` Michal Simek
2022-09-22  6:39     ` Jae Hyun Yoo
2022-09-22  7:29       ` Michal Simek
2022-09-22 16:22         ` Jae Hyun Yoo
2022-08-25 16:42 ` [PATCH v4 2/6] cmd: fru: move FRU handling support to common region Jae Hyun Yoo
2022-08-25 16:42 ` [PATCH v4 3/6] cmd: fru: fix a sandbox segfault issue Jae Hyun Yoo
2022-09-21 13:07   ` Michal Simek
2022-09-22  6:39     ` Jae Hyun Yoo
2022-08-25 16:42 ` [PATCH v4 4/6] cmd: fru: add product info area parsing support Jae Hyun Yoo
2022-09-21 13:52   ` Michal Simek
2022-09-22  6:39     ` Jae Hyun Yoo
2022-09-22  7:19       ` Michal Simek
2022-09-22 16:15         ` Jae Hyun Yoo
2022-08-25 16:42 ` [PATCH v4 5/6] doc: fru: add documentation for the fru command and APIs Jae Hyun Yoo
2022-09-21 13:54   ` Michal Simek
2022-09-22  6:40     ` Jae Hyun Yoo
2022-08-25 16:42 ` [PATCH v4 6/6] test: cmd: fru: add unit test for the fru command Jae Hyun Yoo
2022-09-15 14:01 ` [PATCH v4 0/6] cmd/fru: move FRU handling support to common region Jae Hyun Yoo
2022-09-15 14:38   ` Michal Simek

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).