[U-Boot] [PATCH v2 3/5] dm: sysreset: Add a standard message when doing reset

Bin Meng bmeng.cn at gmail.com
Thu Jul 19 10:07:31 UTC 2018


It's good to print a message when doing reset.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>

---

Changes in v2:
- new patch per Wolfgang's suggestion to add a standard message when
  doing reset

 drivers/sysreset/sysreset-uclass.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c
index 7e06c3c..59dbe99 100644
--- a/drivers/sysreset/sysreset-uclass.c
+++ b/drivers/sysreset/sysreset-uclass.c
@@ -69,6 +69,8 @@ void reset_cpu(ulong addr)
 
 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
+	printf("resetting ...\n");
+
 	sysreset_walk_halt(SYSRESET_COLD);
 
 	return 0;
-- 
2.7.4



More information about the U-Boot mailing list