summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-05-14 14:56:33 +0800
committersakumisu <[email protected]>2025-05-14 14:56:43 +0800
commit5e45d152924258289d0cb11d6f4b4b0df33d404f (patch)
tree5e3de127ac04ec7027d60bd9b044df4a37db5aee
parentb19f70575a0aa4ed449f1e6ea737765bd724f3b3 (diff)
fix(port/ehci/usb_hc_ehci): fix qtd->hw.alt_next_qtd should be 1 not zero
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--port/ehci/usb_hc_ehci.c2
1 files changed, 2 insertions, 0 deletions
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;