mbox series

[v3,0/5] cmd: add scmi command

Message ID 20231114021428.531887-1-takahiro.akashi@linaro.org
Headers show
Series cmd: add scmi command | expand

Message

AKASHI Takahiro Nov. 14, 2023, 2:14 a.m. UTC
"Scmi" command will be re-introduced per Michal's request.
The functionality is the same as I put it in my patch set of adding
SCMI base protocol support, but made some tweak to make UT, "ut dm
scmi_cmd," more flexible and tolerable when enabling/disabling a specific
SCMI protocol for test purpose.

Each commit may have some change history inherited from the preceding
patch series.

Test
====
The patch series was tested on the following platforms:
* sandbox

Prerequisite:
=============
* This patch series is based on the latest master.

Changes:
========
v3(Nov 14, 2023)
* return -EAGAIN if we want to skip a test.
* use CONFIG_IS_ENABLED() rather than IS_ENABLED().
* remove goto by introducing a function in sandbox implementation.
v2(Nov 13, 2023)
* localize global variables to avoid pytest errors.

AKASHI Takahiro (5):
  test: dm: skip scmi tests against disabled protocols
  firmware: scmi: support protocols on sandbox only if enabled
  cmd: add scmi command for SCMI firmware
  doc: cmd: add documentation for scmi
  test: dm: add scmi command test

 cmd/Kconfig                                  |   9 +
 cmd/Makefile                                 |   1 +
 cmd/scmi.c                                   | 384 +++++++++++++++++++
 configs/sandbox_defconfig                    |   1 +
 doc/usage/cmd/scmi.rst                       | 126 ++++++
 doc/usage/index.rst                          |   1 +
 drivers/firmware/scmi/sandbox-scmi_agent.c   |  30 +-
 drivers/firmware/scmi/sandbox-scmi_devices.c |  78 ++--
 test/dm/scmi.c                               |  93 +++++
 9 files changed, 686 insertions(+), 37 deletions(-)
 create mode 100644 cmd/scmi.c
 create mode 100644 doc/usage/cmd/scmi.rst

Comments

Tom Rini Nov. 29, 2023, 1:13 p.m. UTC | #1
On Tue, 14 Nov 2023 11:14:23 +0900, AKASHI Takahiro wrote:

> "Scmi" command will be re-introduced per Michal's request.
> The functionality is the same as I put it in my patch set of adding
> SCMI base protocol support, but made some tweak to make UT, "ut dm
> scmi_cmd," more flexible and tolerable when enabling/disabling a specific
> SCMI protocol for test purpose.
> 
> Each commit may have some change history inherited from the preceding
> patch series.
> 
> [...]

Applied to u-boot/next, thanks!