diff options
author | Ming Lei <tom.leiming@gmail.com> | 2010-05-15 18:25:40 +0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-04 14:55:09 -0400 |
commit | ce9426d1908001fb2f7b0152fbe4184bbc0c7b68 (patch) | |
tree | 42389f116a18a2ba8c3d7b20f52d591766bb9602 /drivers/ssb | |
parent | 26b36cfefaf2be98b225e3c1a399edb0daf52ddd (diff) | |
download | op-kernel-dev-ce9426d1908001fb2f7b0152fbe4184bbc0c7b68.zip op-kernel-dev-ce9426d1908001fb2f7b0152fbe4184bbc0c7b68.tar.gz |
ath9k: fix dma sync in rx path
If buffer is to be accessed by cpu after dma is over, but
between dma mapping and dma unmapping, we should use
dma_sync_single_for_cpu to sync the buffer between cpu with
device. And dma_sync_single_for_device is used to let
device gain the buffer again.
v2: Felix pointed out dma_sync_single_for_device is needed to return
buffer to device if an unsuccessful status bit check is found.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb')
0 files changed, 0 insertions, 0 deletions