diff options
| author | sakumisu <[email protected]> | 2024-05-22 18:50:33 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-05-22 18:51:41 +0800 |
| commit | 8b070570a7a3cd7dad0f9e4549aa25687eddac03 (patch) | |
| tree | a68ed2c2d30230a995111e21a94a3db1607cfb40 | |
| parent | af792eababae070291dabc4c2e387a68eebe8ef3 (diff) | |
fix(port/ehci): fix missing busid
| -rw-r--r-- | port/ehci/usb_hc_ehci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c index 39d4b702..41c8f46d 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -714,7 +714,7 @@ int usb_hc_init(struct usbh_bus *bus) uint32_t regval; memset(&g_ehci_hcd[bus->hcd.hcd_id], 0, sizeof(struct ehci_hcd)); - memset(ehci_qh_pool, 0, sizeof(struct ehci_qh_hw) * CONFIG_USB_EHCI_QH_NUM); + memset(ehci_qh_pool[bus->hcd.hcd_id], 0, sizeof(struct ehci_qh_hw) * CONFIG_USB_EHCI_QH_NUM); for (uint8_t index = 0; index < CONFIG_USB_EHCI_QH_NUM; index++) { qh = &ehci_qh_pool[bus->hcd.hcd_id][index]; |
