diff options
author | Ming Lei <tom.leiming@gmail.com> | 2010-05-14 17:15:38 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-03 00:13:07 +0400 |
commit | 56824223ac97ca845652c59bed9ce139e100261b (patch) | |
tree | b1b053b80ed79168fd476608afa7aefb154be802 /drivers | |
parent | 66fceb69b72ff7e9cd8da2ca70033982d5376e0e (diff) | |
download | linux-56824223ac97ca845652c59bed9ce139e100261b.tar.xz |
ath9k: fix dma direction for map/unmap in ath_rx_tasklet
For edma, we should use DMA_BIDIRECTIONAL, or else use
DMA_FROM_DEVICE.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index ca6065b71b46..e3e52913d83a 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -844,9 +844,9 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp) int dma_type; if (edma) - dma_type = DMA_FROM_DEVICE; - else dma_type = DMA_BIDIRECTIONAL; + else + dma_type = DMA_FROM_DEVICE; qtype = hp ? ATH9K_RX_QUEUE_HP : ATH9K_RX_QUEUE_LP; spin_lock_bh(&sc->rx.rxbuflock); |