iwlagn: fix DMA sync
commite91af0af8677198346d5d29f09ab39bb3b0e3faf
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 19 Nov 2008 00:22:51 +0000 (19 01:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2008 21:13:08 +0000 (25 16:13 -0500)
tree1d3ca86f71498f27855642dbbfc64dead0a7a952
parent7e56b5d698707a9934833c47b24d78fb0bcaf764
iwlagn: fix DMA sync

For the RX DMA fix for iwlwifi ("iwlagn: fix RX skb alignment") Luis
pointed out:

> aligned_dma_addr can obviously be > real_dma_addr at this point, what
> guarantees we can use it on our own whim?

I asked around, and he's right, there may be platforms that do not allow
passing such such an address to the DMA API functions. This patch
changes it by using the proper dma_sync_single_range_for_cpu API
invented for this purpose.

Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c