From 5e45d152924258289d0cb11d6f4b4b0df33d404f Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 14 May 2025 14:56:33 +0800 Subject: fix(port/ehci/usb_hc_ehci): fix qtd->hw.alt_next_qtd should be 1 not zero 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 e96a1f76..3fee1c3f 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -41,6 +41,8 @@ static struct ehci_qtd_hw *ehci_qtd_alloc(struct usbh_bus *bus) memset(&qtd->hw, 0, sizeof(struct ehci_qtd)); qtd->hw.next_qtd = QTD_LIST_END; + qtd->hw.alt_next_qtd = QTD_LIST_END; + qtd->hw.token = QTD_TOKEN_STATUS_HALTED; qtd->urb = NULL; qtd->bufaddr = 0; qtd->length = 0; -- cgit v1.3.1