Skip to content

RFC cmd: fpga: Fix fpga command handling and add some fpga tests

Michal Simek u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15test/py: Extend fpga command to test all fpga load typestest/py/tests/test_fpga.py+516 -01 reply
2/15cmd: fpga: Move error handling to do_fpga()cmd/fpga.c+3 -31 reply
3/15cmd: fpga: Move fpga_get_op to avoid local function declarationcmd/fpga.c+41 -441 reply
3/15cmd: fpga: Move fpga_get_op to avoid local function declaration+0 -01 reply
4/15cmd: fpga: Cleanup error handling in connection to FPGA_NONEcmd/fpga.c+2 -61 reply
5/15cmd: fpga: Move parameter checking for loadfs/loadscmd/fpga.c+21 -231 reply
6/15cmd: fpga: Remove parameter checking from fpga loadfs commandcmd/fpga.c+0 -71 reply
7/15cmd: fpga: Clean wrong_parms handlingcmd/fpga.c+8 -271 reply
8/15cmd: fpga: Create new do_fpga_wrapper for using u-boot subcommandscmd/fpga.c+40 -21 reply
9/15cmd: fpga: Extract fpga info command to separate functioncmd/fpga.c+27 -81 reply
10/15cmd: fpga: Fix dump and all direct fpga load commandscmd/fpga.c+122 -441 reply
11/15cmd: fpga: Fix loadfs commandcmd/fpga.c+28 -300 replies
12/15cmd: fpga: Fix loadmk commandcmd/fpga.c+125 -1150 replies
13/15cmd: fpga: Use CMD_RET_FAILURE instead of simple 1cmd/fpga.c+8 -81 reply
14/15cmd: fpga: Fix loads commandcmd/fpga.c+36 -1120 replies
15/15MAINTAINERS: Add myself as the FPGA maintainerMAINTAINERS+8 -01 reply

Reviews trailers per patch

13 of 16 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/15R-b
2/15R-b
3/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b
11/15
12/15
13/15R-b
14/15
15/15R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [RFC PATCH 00/15] cmd: fpga: Fix fpga command handling and add some fpga tests

Hi,

We are using this framework for a while and by adding more and more features it requires small redesigned how commands are handled. This is something what I have put together to improve readability of this code and also remove code which is bogus and completely untested.

The series depends on these patches.
https://lists.denx.de/pipermail/u-boot/2018-June/332487.html
https://lists.denx.de/pipermail/u-boot/2018-June/332488.html
https://lists.denx.de/pipermail/u-boot/2018-June/330651.html

I am sending this as RFC to get a feedback on these changes. I have rebased it on the latest tree and need to run another testing round again.

Thanks,
Michal

Michal Simek (15):
test/py: Extend fpga command to test all fpga load types
cmd: fpga: Move error handling to do_fpga()
cmd: fpga: Move fpga_get_op to avoid local function declaration
cmd: fpga: Cleanup error handling in connection to FPGA_NONE
cmd: fpga: Move parameter checking for loadfs/loads
cmd: fpga: Remove parameter checking from fpga loadfs command
cmd: fpga: Clean wrong_parms handling
cmd: fpga: Create new do_fpga_wrapper for using u-boot subcommands
cmd: fpga: Extract fpga info command to separate function
cmd: fpga: Fix dump and all direct fpga load commands
cmd: fpga: Fix loadfs command
cmd: fpga: Fix loadmk command
cmd: fpga: Use CMD_RET_FAILURE instead of simple 1
cmd: fpga: Fix loads command
MAINTAINERS: Add myself as the FPGA maintainer

 MAINTAINERS                |   8 +
 cmd/fpga.c                 | 606 ++++++++++++++++++++++++---------------------
 test/py/tests/test_fpga.py | 516 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 843 insertions(+), 287 deletions(-)
 create mode 100644 test/py/tests/test_fpga.py
Signature · 1 line
1.9.1