From 578c3f67f242be43b3c5b5b63433f72c93147d19 Mon Sep 17 00:00:00 2001 From: Michal Miroslaw Date: Tue, 26 Jul 2011 16:08:51 -0700 Subject: [PATCH] --- yaml --- r: 260429 b: refs/heads/master c: 3f0fb4e85b3842a2606c647c0a66afe2073574b4 h: refs/heads/master i: 260427: 073bd8a3bcbd3dae9b2a6bce8a01b5d46b832964 v: v3 --- [refs] | 2 +- trunk/Documentation/DMA-API-HOWTO.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 0cf3e5f66745..bd8f6f059666 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 91f6cdf86e8a2bd9b9c292a750179dc2c728a2d4 +refs/heads/master: 3f0fb4e85b3842a2606c647c0a66afe2073574b4 diff --git a/trunk/Documentation/DMA-API-HOWTO.txt b/trunk/Documentation/DMA-API-HOWTO.txt index d568bc235bc0..a0b6250add79 100644 --- a/trunk/Documentation/DMA-API-HOWTO.txt +++ b/trunk/Documentation/DMA-API-HOWTO.txt @@ -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); } }