diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2006-05-29 03:35:32 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2006-05-29 03:35:32 +0000 |
commit | eb506312872a39a7156b5db611ecf7ed23392e02 (patch) | |
tree | 6bbad3d36bcdd28e46afc7fb9383c2c023b9bce0 /sys/dev/usb | |
parent | 28cdf6cf6449ae3bdac332f5aaac1a3b1dc8c98b (diff) |
Only check USBD_FORCE_SHORT_XFER for writes.
From NetBSD rev1.164
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ohci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 96cf9528566..6b348dfe12e 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci.c,v 1.69 2006/05/29 03:31:29 pascoe Exp $ */ +/* $OpenBSD: ohci.c,v 1.70 2006/05/29 03:35:31 pascoe Exp $ */ /* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -504,7 +504,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. */ |