aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2008-02-12 11:03:29 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2008-02-12 11:03:29 +0000
commit5713ef0ced137199028b03ba755a65a10bde1a27 (patch)
tree270bd62b203de76f928b9d973ef7b72b220caed6 /sys/dev/usb
parent3efe0d9d2a7436816b2f6bea77746a2a766b3fbb (diff)
Notes
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usbdi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 35c201cca5ee..bfc0dd9e49d6 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -383,7 +383,8 @@ usbd_start_transfer(void *arg, bus_dma_segment_t *segs, int nseg, int error)
* packet.
*/
bus_dmamap_sync(tag, dmap->map, BUS_DMASYNC_PREWRITE);
- }
+ } else
+ bus_dmamap_sync(tag, dmap->map, BUS_DMASYNC_PREREAD);
}
err = pipe->methods->transfer(xfer);
if (err != USBD_IN_PROGRESS && err) {