From 1a3343bc114b1db7f2aeed05ae0b047772b41888 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 25 Jan 2026 17:02:20 +0800 Subject: update(port/ehci): set roothub speed to high Signed-off-by: sakumisu <1203593632@qq.com> --- port/ehci/usb_hc_ehci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c index e278f523..fd72907f 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -774,6 +774,8 @@ int usb_hc_init(struct usbh_bus *bus) volatile uint32_t timeout = 0; uint32_t regval; + bus->hcd.roothub.speed = USB_SPEED_HIGH; + memset(&g_ehci_hcd[bus->hcd.hcd_id], 0, sizeof(struct ehci_hcd)); memset(ehci_qh_pool[bus->hcd.hcd_id], 0, sizeof(struct ehci_qh_hw) * CONFIG_USB_EHCI_QH_NUM); memset(ehci_qtd_pool[bus->hcd.hcd_id], 0, sizeof(struct ehci_qtd_hw) * CONFIG_USB_EHCI_QTD_NUM); -- cgit v1.3.1