mw_debug: Fix core reset
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 4 May 2020 12:16:22 +0000 (22:16 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 8 May 2020 01:41:06 +0000 (11:41 +1000)
mw_debug creset would poke the START bit instead of the RESET bit

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
scripts/mw_debug/mw_debug.c

index f1a7cabb391a49abfe354b358787a9e297e00891..7bcf4f981183796a3efdc231be5fa6baa40a215e 100644 (file)
@@ -392,7 +392,7 @@ static void core_start(void)
 
 static void core_reset(void)
 {
-       check(dmi_write(DBG_CORE_CTRL, DBG_CORE_CTRL_START), "resetting core");
+       check(dmi_write(DBG_CORE_CTRL, DBG_CORE_CTRL_RESET), "resetting core");
 }
 
 static void core_step(void)