Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260429
b: refs/heads/master
c: 3f0fb4e
h: refs/heads/master
i:
  260427: 073bd8a
v: v3
  • Loading branch information
Michal Miroslaw authored and Linus Torvalds committed Jul 26, 2011
1 parent 0860afc commit 578c3f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 91f6cdf86e8a2bd9b9c292a750179dc2c728a2d4
refs/heads/master: 3f0fb4e85b3842a2606c647c0a66afe2073574b4
12 changes: 6 additions & 6 deletions trunk/Documentation/DMA-API-HOWTO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,13 @@ to use the dma_sync_*() interfaces.
pass_to_upper_layers(cp->rx_buf);
make_and_setup_new_rx_buf(cp);
} else {
/* Just sync the buffer and give it back
* to the card.
/* CPU should not write to
* DMA_FROM_DEVICE-mapped area,
* so dma_sync_single_for_device() is
* not needed here. It would be required
* for DMA_BIDIRECTIONAL mapping if
* the memory was modified.
*/
dma_sync_single_for_device(&cp->dev,
cp->rx_dma,
cp->rx_len,
DMA_FROM_DEVICE);
give_rx_buf_to_card(cp);
}
}
Expand Down

0 comments on commit 578c3f6

Please sign in to comment.