adiv5: Release devices after scan.
Before, scanning only kept device stopped until POR or attach/detach cycle.
This commit is contained in:
parent
73e6b540b2
commit
f76a7c4e92
|
@ -750,6 +750,10 @@ void adiv5_dp_init(ADIv5_DP_t *dp)
|
|||
/* The rest should only be added after checking ROM table */
|
||||
adiv5_component_probe(ap, ap->base, 0, 0);
|
||||
}
|
||||
/* We halted at least CortexM for Romtable scan.
|
||||
* Release the devices now. Attach() will halt them again.*/
|
||||
for (target *t = target_list; t; t = t->next)
|
||||
target_halt_resume(t, false);
|
||||
adiv5_dp_unref(dp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue