From 8b070570a7a3cd7dad0f9e4549aa25687eddac03 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 22 May 2024 18:50:33 +0800 Subject: fix(port/ehci): fix missing busid --- port/ehci/usb_hc_ehci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v1.3.1