summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-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 684d604..d299966 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -384,7 +384,8 @@ usbd_start_transfer(void *arg, bus_dma_segment_t *segs, int nseg, int error)
* sync the dmamap for the request data in the SETUP
* packet.
*/
- bus_dmamap_sync(tag, dmap->map, BUS_DMASYNC_PREWRITE);
+ bus_dmamap_sync(tag, dmap->map,
+ BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
} else
bus_dmamap_sync(tag, dmap->map, BUS_DMASYNC_PREREAD);
}
OpenPOWER on IntegriCloud