diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2011-06-10 14:20:34 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2011-06-10 14:20:34 +0000 |
| commit | bb2113d25c577e37bc3b3828bba7b5cde7d3fa89 (patch) | |
| tree | b0b0595d8aea978126089312cc1d3315a652e12e /sys | |
| parent | 0a6ae4ae2cae68ba4304430432453cd484d09bb1 (diff) | |
ehci_set_qh_qtd: terminate alternate next qTD pointer with EHCI_NULL, not 0
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/usb/ehci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index eff581ff905..911a975aae1 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ehci.c,v 1.178 2011/06/09 19:08:31 matt Exp $ */ +/* $NetBSD: ehci.c,v 1.179 2011/06/10 14:20:34 jmcneill Exp $ */ /* * Copyright (c) 2004-2008 The NetBSD Foundation, Inc. @@ -52,7 +52,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.178 2011/06/09 19:08:31 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.179 2011/06/10 14:20:34 jmcneill Exp $"); #include "ohci.h" #include "uhci.h" @@ -1796,7 +1796,7 @@ ehci_set_qh_qtd(ehci_soft_qh_t *sqh, ehci_soft_qtd_t *sqtd) BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD); 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; |
