]> git.ipfire.org Git - people/ms/u-boot.git/commit
dm: reset: have the reset-command perform a COLD reset
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 24 Nov 2017 17:37:58 +0000 (18:37 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 13 Dec 2017 02:53:45 +0000 (19:53 -0700)
commitb53f6992e9cb7f0d892ebc2b1620b55559f461be
treed2211146c7e239b4bdb1eee58879c593ef099f61
parentf2faffecb016988a999f26f1dbebc5d88793761b
dm: reset: have the reset-command perform a COLD reset

The DM version of do_reset has been issuing a warm-reset, which (on
some platforms keeps GPIOs and other parts of the platform active).
This may cause unintended behaviour, as calling do_reset usually
indicates a desire to reset the board/platform and not just the CPU.

This changes do_reset to always request a COLD reset.
Note that programmatic uses can still invoke a WARM reset through
reset_cpu() or using sysreset_walk().

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/sysreset/sysreset-uclass.c