diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2005-03-08 08:17:17 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2005-03-08 08:17:17 +0000 |
commit | 3cd6dbf4fab631bef1a27f75e46a4aada30c8aae (patch) | |
tree | fc70e409ff3d4ec1faffe561f46de00a6f83c975 /sys/dev/usb/ehci.c | |
parent | dace1564256168224861ece8367bdb6c1df69733 (diff) |
Initialise the alternate next pointer in the queue head with EHCI_NULL, not
zero. The host controller should, in theory, never follow this pointer, but
it is a minor spec violation.
ok dlg@
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r-- | sys/dev/usb/ehci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index 250d10fd1e9..3f414265ea4 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci.c,v 1.40 2005/03/08 08:06:36 pascoe Exp $ */ +/* $OpenBSD: ehci.c,v 1.41 2005/03/08 08:17:16 pascoe Exp $ */ /* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */ /* @@ -1485,7 +1485,7 @@ ehci_set_qh_qtd(ehci_soft_qh_t *sqh, ehci_soft_qtd_t *sqtd) htole32(EHCI_QTD_SET_STATUS(EHCI_QTD_HALTED)); sqh->qh.qh_curqtd = 0; sqh->qh.qh_qtd.qtd_next = htole32(sqtd->physaddr); - sqh->qh.qh_qtd.qtd_altnext = 0; + sqh->qh.qh_qtd.qtd_altnext = EHCI_NULL; for (i = 0; i < EHCI_QTD_NBUFFERS; i++) sqh->qh.qh_qtd.qtd_buffer[i] = 0; sqh->sqtd = sqtd; |