Fix probable cut-n-paste error: make the virtual QH link match the physical

one. The effect of this was just that the virtual list missed the
chsqh entry, it only shows up when looking at debug outputs.
This commit is contained in:
bouyer 2008-06-02 20:53:29 +00:00
parent 99cb76cad6
commit 17471e2294
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhci.c,v 1.219 2008/06/02 01:02:21 jmcneill Exp $ */
/* $NetBSD: uhci.c,v 1.220 2008/06/02 20:53:29 bouyer Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.219 2008/06/02 01:02:21 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.220 2008/06/02 20:53:29 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -493,7 +493,7 @@ uhci_init(uhci_softc_t *sc)
clsqh = uhci_alloc_sqh(sc);
if (clsqh == NULL)
return (USBD_NOMEM);
clsqh->hlink = bsqh;
clsqh->hlink = chsqh;
clsqh->qh.qh_hlink = htole32(chsqh->physaddr | UHCI_PTR_QH);
clsqh->elink = NULL;
clsqh->qh.qh_elink = htole32(UHCI_PTR_T);