aboutsummaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index 24f6a511..f82b05e1 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -166,6 +166,9 @@ bool is_jtag_poll_safe(void)
* It is also implicitly disabled while TRST is active and
* while SRST is gating the JTAG clock.
*/
+ if (!transport_is_jtag())
+ return jtag_poll;
+
if (!jtag_poll || jtag_trst != 0)
return false;
return jtag_srst == 0 || (jtag_reset_config & RESET_SRST_NO_GATING);