diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2008-06-06 11:21:16 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2008-06-06 11:21:16 +0000 |
| commit | 06fd33749ed0b775f6d3e472a3e2334c4ff75f26 (patch) | |
| tree | 62d6410dd7ce1e93f7d4ae3834c16f1d4174ae46 /sys/dev | |
| parent | 77fa4c0e468e474c8062d399d2a2c30fa727fceb (diff) | |
uhci_device_intr_done: when re-queueing, pass pipe direction to
uhci_alloc_std_chain instead of always 1 (read). ok drochner
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/uhci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 0d23a91a225..7c29f9235db 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.220 2008/06/02 20:53:29 bouyer Exp $ */ +/* $NetBSD: uhci.c,v 1.221 2008/06/06 11:21:16 jmcneill 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.220 2008/06/02 20:53:29 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.221 2008/06/06 11:21:16 jmcneill Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -2707,7 +2707,8 @@ uhci_device_intr_done(usbd_xfer_handle xfer) DPRINTFN(5,("uhci_device_intr_done: requeing\n")); /* This alloc cannot fail since we freed the chain above. */ - uhci_alloc_std_chain(upipe, sc, xfer->length, 1, xfer->flags, + uhci_alloc_std_chain(upipe, sc, xfer->length, + upipe->u.intr.isread, xfer->flags, &xfer->dmabuf, &data, &dataend); dataend->td.td_status |= htole32(UHCI_TD_IOC); |
