summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-05-19 13:42:26 +0700
committerhathach <[email protected]>2023-05-19 13:42:26 +0700
commit7211dd18b46affdf027522e34ff3aa3b5d8d5df5 (patch)
treeaf89c0ca02dd39ad3432e68ded0fe20cd8c02304 /src
parent5dae5e12928ba789cd7e248edd9fa91376902925 (diff)
more dcache fix
Diffstat (limited to 'src')
-rw-r--r--src/portable/ehci/ehci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/portable/ehci/ehci.c b/src/portable/ehci/ehci.c
index 10e2db7b5..852e7f4fe 100644
--- a/src/portable/ehci/ehci.c
+++ b/src/portable/ehci/ehci.c
@@ -273,19 +273,19 @@ static void list_remove_qhd_by_daddr(ehci_link_t* list_head, uint8_t dev_addr) {
}
// Close all opened endpoint belong to this device
-void hcd_device_close(uint8_t rhport, uint8_t dev_addr)
+void hcd_device_close(uint8_t rhport, uint8_t daddr)
{
// skip dev0
- if (dev_addr == 0) {
+ if (daddr == 0) {
return;
}
// Remove from async list
- list_remove_qhd_by_daddr((ehci_link_t *) qhd_async_head(rhport), dev_addr);
+ list_remove_qhd_by_daddr((ehci_link_t *) qhd_async_head(rhport), daddr);
// Remove from all interval period list
for(uint8_t i = 0; i < TU_ARRAY_SIZE(ehci_data.period_head_arr); i++) {
- list_remove_qhd_by_daddr((ehci_link_t *) &ehci_data.period_head_arr[i], dev_addr);
+ list_remove_qhd_by_daddr((ehci_link_t *) &ehci_data.period_head_arr[i], daddr);
}
// Async doorbell (EHCI 4.8.2 for operational details)
@@ -453,7 +453,7 @@ bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const
list_insert(list_head, (ehci_link_t*) p_qhd, EHCI_QTYPE_QHD);
hcd_dcache_clean(p_qhd, sizeof(ehci_qhd_t));
- hcd_dcache_clean(list_head, sizeof(ehci_link_t));
+ hcd_dcache_clean(list_head, sizeof(ehci_qhd_t));
return true;
}