| From e10e4ec1d82319111e7de0012a4f30939b067ff6 Mon Sep 17 00:00:00 2001 |
| From: John W. Linville <linville@tuxdriver.com> |
| Date: Wed, 28 Jul 2010 10:06:35 -0400 |
| Subject: [PATCH] ath9k: enable serialize_regmode for non-PCIE AR9160 |
| |
| commit e10e4ec1d82319111e7de0012a4f30939b067ff6 in tip. |
| |
| commit 4c85ab11ca56da1aa59b58c80cc6a356515cc645 upstream. |
| |
| https://bugzilla.kernel.org/show_bug.cgi?id=16476 |
| |
| Signed-off-by: John W. Linville <linville@tuxdriver.com> |
| Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
| Signed-off-by: John Kacur <jkacur@redhat.com> |
| |
| diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c |
| index 6661178..4dc9a9d 100644 |
| --- a/drivers/net/wireless/ath/ath9k/hw.c |
| +++ b/drivers/net/wireless/ath/ath9k/hw.c |
| @@ -910,7 +910,8 @@ 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 |
| |