From patchwork Tue Nov 23 18:43:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Kossifidis X-Patchwork-Id: 350181 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 oANIwFUb004920 for ; Tue, 23 Nov 2010 18:59:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061Ab0KWSn1 (ORCPT ); Tue, 23 Nov 2010 13:43:27 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:47055 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250Ab0KWSn1 (ORCPT ); Tue, 23 Nov 2010 13:43:27 -0500 Received: by ewy5 with SMTP id 5so2637664ewy.19 for ; Tue, 23 Nov 2010 10:43:26 -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=mhLCHuP7NrenxYRGGtiTiAM322uTbR1EBfap1BMxGLU=; b=wode/Ufq5LudViDfUaAblVtgaYP31LSv4j6CGRu630EKx2ARsYSQyLrtO3E7TxM+fm kwNcW1ATWnvwfs/xf0oIkGpgRZTod7jrt3bUV26wT6RMfDOr5AeoRzuxqMh8iVHcbaky ENautZWTHRnn+k/CskavdO5LXGTj862t/17Fw= 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=L61+eEk/cyGFtxZoofJYqGxtQoCzU/mAg5PQZtVxfY4dIE3IiknmgYncD87gNwdhT/ ZSew2aGwhjkD5rfpvi82ay4zCAg0gkKFQAboi3U75lw+j0HD3KXS+G3XVj6iPonNLee8 aJin2JuWks74TBybIj6XwQs/H0n11kT/IcYAI= Received: by 10.213.108.130 with SMTP id f2mr7278374ebp.73.1290537806037; Tue, 23 Nov 2010 10:43:26 -0800 (PST) Received: from localhost ([139.91.73.37]) by mx.google.com with ESMTPS id q58sm6073693eeh.21.2010.11.23.10.43.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Nov 2010 10:43:21 -0800 (PST) Date: Tue, 23 Nov 2010 20:43:18 +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 Subject: [PATCH 03/30] ath5k: Stop PCU on reset Message-ID: <20101123184318.GC4303@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 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 23 Nov 2010 18:59:47 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c index 4f94a60..e4900e1 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c @@ -823,6 +823,11 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, mode = 0; /* + * Stop PCU + */ + ath5k_hw_stop_rx_pcu(ah); + + /* * Stop DMA * * Note: If DMA didn't stop continue