Skip to content

consolidate hang()

Andreas Bießmann u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 0 repliesSuperseded

Changes in v3 from the cover letter

* shorten error string for 'no FDT'
* remove unnecessarily added linux/compiler.h
* fix typo in new hang() docu
* use simplified macro for SPL_LIBCOMMON_SUPPORT as suggested by Beno?t

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5microblaze: fix style in board.carch/microblaze/lib/board.c+31 -320 replies
2/5nios2: fix style in board.c.arch/nios2/lib/board.c+21 -220 replies
3/5mx31pdk: add CONFIG_SPL_LIBGENERIC_SUPPORTinclude/configs/mx31pdk.h+1 -00 replies
4/5tx25: add CONFIG_SPL_LIBGENERIC_SUPPORTinclude/configs/tx25.h+1 -01 reply
4/5tx25: add CONFIG_SPL_LIBGENERIC_SUPPORT+0 -00 replies
5/5lib: consolidate hang()arch/arm/cpu/arm926ejs/mxs/spl_boot.c arch/arm/cpu/arm926ejs/spear/spl.c arch/arm/lib/board.c +18 more+47 -1532 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichal SimekAlbert ARIBAUDSimon Glass
SeriesT-b A-b
1/5R-b
2/5
3/5
4/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/5] consolidate hang()

This series started with intention to make a hung board visualize the (end-)user that it does hang(). The first approach was to make all the different hang() functions weak and provide board specific versions to implement the 'visualization' there.
After some discussion it turned out, that there is still an interface to visualize such states to the user: the 'bootstage' stuff.

BTW:
This is my first try sending a series with patman. All I can say is:
patman is really cool ;)

The 'microblaze: fix style in board.c' is an leftover from the first approach.

The 'nios2: fix style in board.c' is an leftover from the first approach.

The 'lib: consolidate hang()' is build tested on arm and avr32. It may produces errors on other arches like ppc cause the previous SPL inlined hang() function was also removed. We need to discuss if we always pull in the libgeneric unconditional into SPL or provide a second hang() for those boards which do not link against libgeneric in SPL.

Since v2 got a complete (compile-)test on powerpc by Wolfgang I think we can stick with the current solution. v3 includes some minor changes mentioned in the changelog of respective patches.

Changes in v3:
* shorten error string for 'no FDT'
* remove unnecessarily added linux/compiler.h
* fix typo in new hang() docu
* use simplified macro for SPL_LIBCOMMON_SUPPORT as suggested by Beno?t

Changes in v2:
* delete all hang() and provide generic lib/hang.c

Andreas Bie?mann (5):
microblaze: fix style in board.c
nios2: fix style in board.c.
mx31pdk: add CONFIG_SPL_LIBGENERIC_SUPPORT
tx25: add CONFIG_SPL_LIBGENERIC_SUPPORT
lib: consolidate hang()

 arch/arm/cpu/arm926ejs/mxs/spl_boot.c |    7 ----
 arch/arm/cpu/arm926ejs/spear/spl.c    |    7 ----
 arch/arm/lib/board.c                  |    6 ----
 arch/avr32/lib/board.c                |    5 ---
 arch/blackfin/lib/board.c             |   14 --------
 arch/m68k/lib/board.c                 |    7 ----
 arch/microblaze/lib/board.c           |   62 ++++++++++++++-------------------
 arch/mips/lib/board.c                 |    7 ----
 arch/nds32/lib/board.c                |    7 ----
 arch/nios2/lib/board.c                |   46 +++++++++---------------
 arch/openrisc/lib/board.c             |   12 -------
 arch/powerpc/lib/board.c              |    9 -----
 arch/sandbox/lib/board.c              |    7 ----
 arch/sh/lib/board.c                   |    9 -----
 arch/sparc/lib/board.c                |    9 -----
 arch/x86/lib/board.c                  |    7 ----
 common/board_f.c                      |    6 ----
 common/spl/spl.c                      |    7 ----
 drivers/mtd/nand/mxc_nand_spl.c       |    9 -----
 include/configs/mx31pdk.h             |    1 +
 include/configs/tx25.h                |    1 +
 lib/Makefile                          |    1 +
 lib/hang.c                            |   46 ++++++++++++++++++++++++
 23 files changed, 93 insertions(+), 199 deletions(-)
 create mode 100644 lib/hang.c
Signature · 1 line
1.7.10.4