diff options
| author | augustss <augustss@NetBSD.org> | 2005-05-08 08:12:08 +0000 |
|---|---|---|
| committer | augustss <augustss@NetBSD.org> | 2005-05-08 08:12:08 +0000 |
| commit | cfff5f5e7ab239ecb8eb922c7ba1ea4db8a3c83e (patch) | |
| tree | d33abd5c925db312cc5af3d8867c8950ba44b7b0 /sys/dev | |
| parent | f2f62a17261e91d0569f53d3987f573f8937347f (diff) | |
Only look at USBD_FORCE_SHORT_XFER for writes.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/ohci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 27224b49655..8245b68a8a8 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ohci.c,v 1.163 2005/05/01 01:14:30 augustss Exp $ */ +/* $NetBSD: ohci.c,v 1.164 2005/05/08 08:12:08 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -48,7 +48,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.163 2005/05/01 01:14:30 augustss Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.164 2005/05/08 08:12:08 augustss Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -541,7 +541,7 @@ ohci_alloc_std_chain(struct ohci_pipe *opipe, ohci_softc_t *sc, dataphys += curlen; cur = next; } - if ((flags & USBD_FORCE_SHORT_XFER) && + if (!rd && (flags & USBD_FORCE_SHORT_XFER) && alen % UGETW(opipe->pipe.endpoint->edesc->wMaxPacketSize) == 0) { /* Force a 0 length transfer at the end. */ |
