From: Ming Lei Date: Sat, 15 May 2010 10:25:40 +0000 (+0800) Subject: ath9k: fix dma sync in rx path X-Git-Tag: v2.6.36-rc1~571^2~615^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce9426d1908001fb2f7b0152fbe4184bbc0c7b68;p=pandora-kernel.git 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 Acked-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed