Module Name: src
Committed By: jmcneill
Date: Fri Jun 10 14:20:34 UTC 2011
Modified Files:
src/sys/dev/usb: ehci.c
Log Message:
ehci_set_qh_qtd: terminate alternate next qTD pointer with EHCI_NULL, not 0
To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 src/sys/dev/usb/ehci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.178 src/sys/dev/usb/ehci.c:1.179
--- src/sys/dev/usb/ehci.c:1.178 Thu Jun 9 19:08:31 2011
+++ src/sys/dev/usb/ehci.c Fri Jun 10 14:20:34 2011
@@ -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 @@
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;