We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9c3fe commit f872621Copy full SHA for f872621
src/portable/ohci/ohci.c
@@ -377,12 +377,16 @@ static void ed_list_remove_by_addr(ohci_ed_t * p_head, uint8_t dev_addr)
377
378
if (ed->dev_addr == dev_addr)
379
{
380
+ //Prevent Host Controller from processing this ED while we remove it
381
+ ed->skip = 1;
382
+
383
// unlink ed
384
p_prev->next = ed->next;
385
386
// point the removed ED's next pointer to list head to make sure HC can always safely move away from this ED
387
ed->next = (uint32_t) p_head;
388
ed->used = 0;
389
+ ed->skip = 0;
390
continue;
391
}
392
0 commit comments