aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/core.c3
-rw-r--r--src/target/adi_v5_swd.c3
2 files changed, 3 insertions, 3 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);
diff --git a/src/target/adi_v5_swd.c b/src/target/adi_v5_swd.c
index f08b0be0..f8d3650e 100644
--- a/src/target/adi_v5_swd.c
+++ b/src/target/adi_v5_swd.c
@@ -429,9 +429,6 @@ static int swd_init(struct command_context *ctx)
if (status == ERROR_OK)
LOG_INFO("SWD IDCODE %#8.8" PRIx32, idcode);
- /* this is a workaround to get polling working */
- jtag_add_reset(0, 0);
-
return status;
}