Skip to content

Commit

Permalink
target/adiv5: escalate failures from debug info to debug warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
perigoso committed Jul 18, 2023
1 parent 30fd770 commit 61b41c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/target/adiv5.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ void adiv5_dp_init(adiv5_debug_port_s *const dp, const uint32_t idcode)
if (status == (ADIV5_DP_CTRLSTAT_CSYSPWRUPACK | ADIV5_DP_CTRLSTAT_CDBGPWRUPACK))
break;
if (platform_timeout_is_expired(&timeout)) {
DEBUG_INFO("DEBUG Power-Up failed\n");
DEBUG_WARN("DEBUG Power-Up failed\n");
free(dp); /* No AP that referenced this DP so long*/
return;
}
Expand All @@ -912,11 +912,11 @@ void adiv5_dp_init(adiv5_debug_port_s *const dp, const uint32_t idcode)
while (true) {
ctrlstat = adiv5_dp_read(dp, ADIV5_DP_CTRLSTAT);
if (ctrlstat & ADIV5_DP_CTRLSTAT_CDBGRSTACK) {
DEBUG_INFO("RESET_SEQ succeeded.\n");
DEBUG_INFO("RESET_SEQ succeeded\n");
break;
}
if (platform_timeout_is_expired(&timeout)) {
DEBUG_INFO("RESET_SEQ failed\n");
DEBUG_WARN("RESET_SEQ failed\n");
break;
}
}
Expand Down

0 comments on commit 61b41c7

Please sign in to comment.