* [U-Boot] [PATCH] dm: reset: have the reset-command perform a COLD reset
@ 2017-11-24 17:37 Philipp Tomsich
2017-11-26 11:39 ` Simon Glass
2017-12-08 17:11 ` sjg at google.com
0 siblings, 2 replies; 3+ messages in thread
From: Philipp Tomsich @ 2017-11-24 17:37 UTC (permalink / raw)
To: u-boot
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>
---
drivers/sysreset/sysreset-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c
index 3566d17..0747c52 100644
--- a/drivers/sysreset/sysreset-uclass.c
+++ b/drivers/sysreset/sysreset-uclass.c
@@ -70,7 +70,7 @@ void reset_cpu(ulong addr)
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
- sysreset_walk_halt(SYSRESET_WARM);
+ sysreset_walk_halt(SYSRESET_COLD);
return 0;
}
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] dm: reset: have the reset-command perform a COLD reset
2017-11-24 17:37 [U-Boot] [PATCH] dm: reset: have the reset-command perform a COLD reset Philipp Tomsich
@ 2017-11-26 11:39 ` Simon Glass
2017-12-08 17:11 ` sjg at google.com
1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2017-11-26 11:39 UTC (permalink / raw)
To: u-boot
On 24 November 2017 at 10:37, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> 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>
> ---
>
> drivers/sysreset/sysreset-uclass.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] dm: reset: have the reset-command perform a COLD reset
2017-11-24 17:37 [U-Boot] [PATCH] dm: reset: have the reset-command perform a COLD reset Philipp Tomsich
2017-11-26 11:39 ` Simon Glass
@ 2017-12-08 17:11 ` sjg at google.com
1 sibling, 0 replies; 3+ messages in thread
From: sjg at google.com @ 2017-12-08 17:11 UTC (permalink / raw)
To: u-boot
On 24 November 2017 at 10:37, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> 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>
> ---
>
> drivers/sysreset/sysreset-uclass.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot-dm thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-08 17:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-24 17:37 [U-Boot] [PATCH] dm: reset: have the reset-command perform a COLD reset Philipp Tomsich
2017-11-26 11:39 ` Simon Glass
2017-12-08 17:11 ` sjg at google.com
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.