From 44967a9e07ff01a01a96757f302c053553cff35e Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Mon, 24 Feb 2020 12:26:07 +0100 Subject: [PATCH] jtag: report API reset as synchronous The jtag API reset() is synchronous, but this was not highlighted in the description. Change-Id: I76ffb7eec97c8608cfbef0b9268ee18a5f50b221 Signed-off-by: Antonio Borneo Fixes: 8850eb8f2c51 ("swd: get rid of jtag queue to assert/deassert srst") Reviewed-on: http://openocd.zylin.com/5471 Reviewed-by: Andreas Fritiofson Tested-by: jenkins --- src/jtag/interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jtag/interface.h b/src/jtag/interface.h index f4c6a98ba..39d2d9d88 100644 --- a/src/jtag/interface.h +++ b/src/jtag/interface.h @@ -250,6 +250,8 @@ struct adapter_driver { /** * Control (assert/deassert) the signals SRST and TRST on the interface. + * This function is synchronous and should be called after the adapter + * queue has been properly flushed. * This function is optional. * Adapters that don't support resets can either not define this function * or return an error code. -- 2.30.2