dm: sysreset: wait after reset message
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 29 Jul 2020 10:13:41 +0000 (12:13 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 1 Aug 2020 09:58:39 +0000 (11:58 +0200)
In our Python tests we expect to see the word "resetting". It may be
truncated if we reset before the serial console buffer is transferred.

Wait for 100 ms between the "resetting ..." message and the actual reset
like we do when powering off.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/sysreset/sysreset-uclass.c

index 995240f..3f5414e 100644 (file)
@@ -117,6 +117,7 @@ void reset_cpu(ulong addr)
 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        printf("resetting ...\n");
+       mdelay(100);
 
        sysreset_walk_halt(SYSRESET_COLD);