add callback for hcd when it cleaned up all cache data for a device (previously mark as removing).

This commit is contained in:
hathach
2013-03-22 18:55:45 +07:00
parent 6b276d09bf
commit f6acca6664
4 changed files with 12 additions and 7 deletions

View File

@@ -183,6 +183,9 @@ void async_advance_isr(ehci_qhd_t * const async_head)
p_control_qhd->is_removing = 0;
p_control_qhd->used = 0;
p_control_qhd->p_qtd_list_head = p_control_qhd->p_qtd_list_tail = NULL;
// TODO abstract: Host Controller has cleaned up its data for this device, notify usbh
usbh_device_hcd_data_cleaned_up_cb(relative_dev_addr+1);
}
// check if any other endpoints in pool is removing