From 12e9f6292b391d475214704843504c5817bf783e Mon Sep 17 00:00:00 2001 From: Andreas Fritiofson Date: Wed, 14 May 2014 22:14:10 +0200 Subject: Relax polling check if not in JTAG mode Polling was disabled based on global variables jtag_trst and jtag_srst which were never touched in non-JTAG mode. Modify the check and remove the ugly workaround to avoid calls to a possibly uninitialized JTAG subsystem. Change-Id: I3b18c81e0fba7aaf35afe6f08c3fe8fa6f8443fd Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/2143 Tested-by: jenkins Reviewed-by: Paul Fertser --- src/target/adi_v5_swd.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/target/adi_v5_swd.c') diff --git a/src/target/adi_v5_swd.c b/src/target/adi_v5_swd.c index f08b0be..f8d3650 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; } -- cgit v1.1