mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
ohci: Set skip on ed prior to removal
This commit is contained in:
parent
cc9c3feeae
commit
f87262185e
@ -377,12 +377,16 @@ static void ed_list_remove_by_addr(ohci_ed_t * p_head, uint8_t dev_addr)
|
||||
|
||||
if (ed->dev_addr == dev_addr)
|
||||
{
|
||||
//Prevent Host Controller from processing this ED while we remove it
|
||||
ed->skip = 1;
|
||||
|
||||
// unlink ed
|
||||
p_prev->next = ed->next;
|
||||
|
||||
// point the removed ED's next pointer to list head to make sure HC can always safely move away from this ED
|
||||
ed->next = (uint32_t) p_head;
|
||||
ed->used = 0;
|
||||
ed->skip = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user