Skip to content

Commit 1602262

Browse files
sobucherhankur
authored andcommitted
target/xtensa: reset powered-off counter when powered on
1 parent 0cca0e4 commit 1602262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/target/xtensa/xtensa.c

+3
Original file line numberDiff line numberDiff line change
@@ -2324,6 +2324,9 @@ int xtensa_poll(struct target *target)
23242324
"DSR has changed: was 0x%08" PRIx32 " now 0x%08" PRIx32,
23252325
prev_dsr,
23262326
xtensa->dbg_mod.core_status.dsr);
2327+
if (xtensa_dm_is_powered(&xtensa->dbg_mod))
2328+
/* Reset the powered-off counter */
2329+
xtensa->come_online_probes_num = 3;
23272330
if (xtensa->dbg_mod.power_status.stath & PWRSTAT_COREWASRESET(xtensa)) {
23282331
/* if RESET state is persitent */
23292332
target->state = TARGET_RESET;

0 commit comments

Comments
 (0)