fix(port/ehci/usb_hc_ehci): fix qtd->hw.alt_next_qtd should be 1 not zero

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-05-14 14:56:33 +08:00
parent b19f70575a
commit 5e45d15292

View File

@@ -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;