From patchwork Fri Dec 3 04:09:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Kossifidis X-Patchwork-Id: 376681 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB349fNH014923 for ; Fri, 3 Dec 2010 04:09:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758379Ab0LCEJk (ORCPT ); Thu, 2 Dec 2010 23:09:40 -0500 Received: from mail-ew0-f45.google.com ([209.85.215.45]:36635 "EHLO mail-ew0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757496Ab0LCEJj (ORCPT ); Thu, 2 Dec 2010 23:09:39 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 03 Dec 2010 04:09:41 +0000 (UTC) X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Dec 2010 23:09:39 EST Received: by ewy10 with SMTP id 10so5228139ewy.4 for ; Thu, 02 Dec 2010 20:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=JOuwFhUAbH8iSrgE0IVCth8jjgzpz7TPWOoa7hFnyXk=; b=RduxVX3XlI+fd8kepHfBYBa3S6aJ+NzaBjnPjU/9iRxg8A6cZJHo3K8cosI1ZUnzCX /QXHKg2EQGddT9xAgnCGv2nF3dk8ahwjoeGCLrljbJaNoFdf1WaCjMloiNfyZK7ByKnB 0IAr6DIMwCwFwQXoEi2wm9iIyX8qeujvXgUfQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=Bkzr6PL5tYMsKxFpxLMfSb1kgGMG0acvQfcn+mtf+7SVFtrY30VNm7Baxaj94JkMi/ MTT+Bu34AzBXC7CDn7ytDUHxpJUPSCNdzlkaS7x8w3571b6BcSMTl+H39kAou6qFx8e8 +C9ZVlTDDpODdN66CNaNxuxDNxK2SYBzosglQ= Received: by 10.213.32.141 with SMTP id c13mr34029ebd.70.1291349378316; Thu, 02 Dec 2010 20:09:38 -0800 (PST) Received: from localhost ([139.91.73.37]) by mx.google.com with ESMTPS id v56sm1070192eeh.20.2010.12.02.20.09.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Dec 2010 20:09:37 -0800 (PST) Date: Fri, 3 Dec 2010 06:09:38 +0200 From: Nick Kossifidis To: ath5k-devel@venema.h4ckr.net, linux-wireless@vger.kernel.org Cc: linville@tuxdriver.com, me@bobcopeland.com, mcgrof@gmail.com, jirislaby@gmail.com, nbd@openwrt.org, br1@einfach.org, sedat.dilek@googlemail.com Subject: [PATCH 4/6] ath5k: Fix reporting of RX dma stop failure Message-ID: <20101203040938.GD2988@makis.mantri> Mail-Followup-To: ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org, linville@tuxdriver.com, me@bobcopeland.com, mcgrof@gmail.com, jirislaby@gmail.com, nbd@openwrt.org, br1@einfach.org, sedat.dilek@googlemail.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c index 82541fe..0064be7 100644 --- a/drivers/net/wireless/ath/ath5k/dma.c +++ b/drivers/net/wireless/ath/ath5k/dma.c @@ -72,7 +72,7 @@ static int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah) i--) udelay(100); - if (i) + if (!i) ATH5K_DBG(ah->ah_sc, ATH5K_DEBUG_DMA, "failed to stop RX DMA !\n");