From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis R. Rodriguez Date: Wed, 28 Jul 2010 11:08:44 -0700 Subject: [ath9k-devel] [PATCH] ath9k: enable serialize_regmode for non-PCIE AR9160 In-Reply-To: <1280330127-5123-1-git-send-email-linville@tuxdriver.com> References: <1280330127-5123-1-git-send-email-linville@tuxdriver.com> Message-ID: <20100728180844.GA6133@tux> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, Jul 28, 2010 at 08:15:27AM -0700, John W. Linville wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=16476 > > Signed-off-by: John W. Linville Acked-by: Luis R. Rodriguez Wow nice find, thanks! > --- > Is there a better (i.e. either more precise or more inclusive) test > to be using here? This is fine unless there is an AR9160 that is AHB, Felix would know. Also if you can Cc stable, that would be appreciated Luis > drivers/net/wireless/ath/ath9k/hw.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c > index c33f17d..1041965 100644 > --- a/drivers/net/wireless/ath/ath9k/hw.c > +++ b/drivers/net/wireless/ath/ath9k/hw.c > @@ -537,7 +537,8 @@ static int __ath9k_hw_init(struct ath_hw *ah) > > if (ah->config.serialize_regmode == SER_REG_MODE_AUTO) { > if (ah->hw_version.macVersion == AR_SREV_VERSION_5416_PCI || > - (AR_SREV_9280(ah) && !ah->is_pciexpress)) { > + ((AR_SREV_9160(ah) || AR_SREV_9280(ah)) && > + !ah->is_pciexpress)) { > ah->config.serialize_regmode = > SER_REG_MODE_ON; > } else { > -- > 1.7.1.1 > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel