summaryrefslogtreecommitdiff
path: root/tinyusb/host/ehci
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-22 18:55:45 +0700
committerhathach <[email protected]>2013-03-22 18:55:45 +0700
commitf6acca666421cddb4e25842ad1215e951f898ecb (patch)
treefb37775bb1c09d397adff42b8b274cd0c11bcc8c /tinyusb/host/ehci
parent6b276d09bffb8f544a54aab717eac904bd34c5b2 (diff)
add callback for hcd when it cleaned up all cache data for a device (previously mark as removing).
Diffstat (limited to 'tinyusb/host/ehci')
-rw-r--r--tinyusb/host/ehci/ehci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index 92c439ff8..e94793254 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -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