Return-path: Received: from nbd.name ([88.198.39.176]:57265 "EHLO ds10.nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753637Ab0EOKo7 (ORCPT ); Sat, 15 May 2010 06:44:59 -0400 Message-ID: <4BEE7B28.5000304@openwrt.org> Date: Sat, 15 May 2010 12:44:56 +0200 From: Felix Fietkau MIME-Version: 1.0 To: Ming Lei CC: lrodriguez@atheros.com, linux-wireless@vger.kernel.org, linville@tuxdriver.com Subject: Re: [PATCH 2/2] ath9k: fix dma sync in rx path References: <1273842938-3401-1-git-send-email-tom.leiming@gmail.com> <1273842969-3435-1-git-send-email-tom.leiming@gmail.com> <4BED5E08.3050000@openwrt.org> <4BED7809.3090204@openwrt.org> <4BEE689A.9060102@openwrt.org> <20100515182540.6f4e140c@tom-lei> In-Reply-To: <20100515182540.6f4e140c@tom-lei> Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 2010-05-15 12:25 PM, Ming Lei wrote: > From edd368e7436e7a80c5a43e7ad40cff1f3fa20806 Mon Sep 17 00:00:00 2001 > From: Ming Lei > Date: Fri, 14 May 2010 17:35:51 +0800 > Subject: [PATCH 2/2] ath9k: fix dma sync in rx path(v2) > > 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 > Signed-off-by: Felix Fietkau Thanks, I will test that later and let you know if it works. - Felix