diff options
Diffstat (limited to 'Documentation/DMA-API-HOWTO.txt')
-rw-r--r-- | Documentation/DMA-API-HOWTO.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index d568bc235bc0..a0b6250add79 100644 --- a/Documentation/DMA-API-HOWTO.txt +++ b/Documentation/DMA-API-HOWTO.txt | |||
@@ -613,13 +613,13 @@ to use the dma_sync_*() interfaces. | |||
613 | pass_to_upper_layers(cp->rx_buf); | 613 | pass_to_upper_layers(cp->rx_buf); |
614 | make_and_setup_new_rx_buf(cp); | 614 | make_and_setup_new_rx_buf(cp); |
615 | } else { | 615 | } else { |
616 | /* Just sync the buffer and give it back | 616 | /* CPU should not write to |
617 | * to the card. | 617 | * DMA_FROM_DEVICE-mapped area, |
618 | * so dma_sync_single_for_device() is | ||
619 | * not needed here. It would be required | ||
620 | * for DMA_BIDIRECTIONAL mapping if | ||
621 | * the memory was modified. | ||
618 | */ | 622 | */ |
619 | dma_sync_single_for_device(&cp->dev, | ||
620 | cp->rx_dma, | ||
621 | cp->rx_len, | ||
622 | DMA_FROM_DEVICE); | ||
623 | give_rx_buf_to_card(cp); | 623 | give_rx_buf_to_card(cp); |
624 | } | 624 | } |
625 | } | 625 | } |