Skip to content

reset: add board reset type

[email protected] u-boot 4 versions – NAK

Status from this message: NACK, this is potentially misleading as sysreset drivers can end up performing something different (see sysreset_walk_arg() just below).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 18 repliesNAK
  2. v36 patches 9 repliesSuperseded
  3. v26 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches7 repliesSuperseded

Patches in v4

#Subject and filesSizeRepliesApplied
1/7reset: Allow per-board reset typedrivers/sysreset/Kconfig drivers/sysreset/sysreset-uclass.c+39 -10 replies
2/7reset: Add explicit cold reset supportcmd/boot.c drivers/sysreset/sysreset-uclass.c+13 -36 replies
3/7reset: Print reset type on diagnostic consoledrivers/sysreset/sysreset-uclass.c+17 -17 replies
4/7reset: x86: Use cpu_hlt() in pch_sysreset_power_off()drivers/sysreset/sysreset_x86.c+1 -11 reply
5/7reset: x86: Use cpu_hlt() in efi_reset_system()drivers/sysreset/sysreset_x86.c+2 -11 reply
6/7docs: reset: document cold reset optiondoc/usage/cmd/reset.rst+7 -42 replies
7/7tests: reset: add cold/warm reset typestest/py/tests/test_reset.py+4 -41 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/7] reset: add board reset type

This series introduces convenience functionality for prototype boards where reset is not fully working - for example, where only warm reset is functional, but cold reset must still be enabled for the production variant.

Patch 1 allows per-board default reset override.
Patch 2 adds reset -c support to explicitly trigger cold reset. Patch 3 adds reset type printout on the console.
Patch 4 introduces a small fixup for the x86 reset driver. Patch 5 introduces a small fixup for the x86 EFI reset driver. Patch 6 updates documentation for reset command.
Patch 7 updates reset command tests.

Link to v3: https://lore.kernel.org/u-boot/[email protected]

Denis Mukhin (7):
reset: Allow per-board reset type
reset: Add explicit cold reset support
reset: Print reset type on diagnostic console
reset: x86: Use cpu_hlt() in pch_sysreset_power_off()
reset: x86: Use cpu_hlt() in efi_reset_system()
docs: reset: document cold reset option
tests: reset: add cold/warm reset types

 cmd/boot.c                         |  3 +-
 doc/usage/cmd/reset.rst            | 11 +++++---
 drivers/sysreset/Kconfig           | 27 ++++++++++++++++++
 drivers/sysreset/sysreset-uclass.c | 44 +++++++++++++++++++++++++++---
 drivers/sysreset/sysreset_x86.c    |  5 ++--
 test/py/tests/test_reset.py        |  8 +++---
 6 files changed, 83 insertions(+), 15 deletions(-)
Signature · 1 line
2.54.0