This is an automated email from Gerrit. "Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8178
-- gerrit commit bc8e001da392970db11a84e05e28689ef2f8000b Author: Antonio Borneo <borneo.anto...@gmail.com> Date: Fri Mar 15 15:22:05 2024 +0100 target/hla_target: drop check on defer_examine The callback assert_reset() will never be called on targets that have defer_examine set. Drop the useless check on defer_examine. This modifies commit 1f84f34850de ("target/hla_target: try to re-examine under reset in hl_assert_reset()"). Change-Id: I93e2c59c5ab0e85d5f52abbd224d964572d252d1 Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com> diff --git a/src/target/hla_target.c b/src/target/hla_target.c index c1bda996ce..5f794fc500 100644 --- a/src/target/hla_target.c +++ b/src/target/hla_target.c @@ -347,8 +347,7 @@ static int hl_assert_reset(struct target *target) adapter->layout->api->write_debug_reg(adapter->handle, DCB_DHCSR, DBGKEY|C_DEBUGEN); - if (!target_was_examined(target) && !target->defer_examine - && srst_asserted && res == ERROR_OK) { + if (!target_was_examined(target) && srst_asserted && res == ERROR_OK) { /* If the target is not examined, now under reset it is good time to retry examination */ LOG_TARGET_DEBUG(target, "Trying to re-examine under reset"); target_examine_one(target); --