adiv5: Only force cortexm_probe() once.

Cette révision appartient à :
Uwe Bonnes 2018-09-10 21:32:47 +02:00 révisé par Gareth McMullin
Parent 489f24584b
révision da75acf015
1 fichiers modifiés avec 2 ajouts et 1 suppressions

Voir le fichier

@ -469,11 +469,12 @@ void adiv5_dp_init(ADIv5_DP_t *dp)
* AP should be unref'd if not valid.
*/
/* The rest sould only be added after checking ROM table */
/* The rest should only be added after checking ROM table */
probed |= adiv5_component_probe(ap, ap->base);
if (!probed && (dp->idcode & 0xfff) == 0x477) {
DEBUG("-> cortexm_probe forced\n");
cortexm_probe(ap);
probed = true;
}
}
adiv5_dp_unref(dp);