Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151381
b: refs/heads/master
c: 9b8e7ba
h: refs/heads/master
i:
  151379: 76e21c1
v: v3
  • Loading branch information
FUJITA Tomonori authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent 232fafe commit 84e68a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b18ffd49e86102a9ed0a1cc83fdafe3891e844e5
refs/heads/master: 9b8e7ba68ad0e4273f4897950de65bc311552cd1
8 changes: 4 additions & 4 deletions trunk/drivers/usb/core/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,12 +799,12 @@ void usb_buffer_dmasync(struct urb *urb)
return;

if (controller->dma_mask) {
dma_sync_single(controller,
dma_sync_single_for_cpu(controller,
urb->transfer_dma, urb->transfer_buffer_length,
usb_pipein(urb->pipe)
? DMA_FROM_DEVICE : DMA_TO_DEVICE);
if (usb_pipecontrol(urb->pipe))
dma_sync_single(controller,
dma_sync_single_for_cpu(controller,
urb->setup_dma,
sizeof(struct usb_ctrlrequest),
DMA_TO_DEVICE);
Expand Down Expand Up @@ -922,8 +922,8 @@ void usb_buffer_dmasync_sg(const struct usb_device *dev, int is_in,
|| !controller->dma_mask)
return;

dma_sync_sg(controller, sg, n_hw_ents,
is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE);
dma_sync_sg_for_cpu(controller, sg, n_hw_ents,
is_in ? DMA_FROM_DEVICE : DMA_TO_DEVICE);
}
EXPORT_SYMBOL_GPL(usb_buffer_dmasync_sg);
#endif
Expand Down

0 comments on commit 84e68a3

Please sign in to comment.