uhci_device_intr_done: when re-queueing, pass pipe direction to
uhci_alloc_std_chain instead of always 1 (read). ok drochner
This commit is contained in:
parent
77fa4c0e46
commit
06fd33749e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue