* [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version.
@ 2011-02-25 12:01 Vivek Natarajan
2011-02-25 12:01 ` [PATCH 2/3] ath9k: Cancel pll_work while disabling radio Vivek Natarajan
2011-03-17 0:04 ` [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Luis R. Rodriguez
0 siblings, 2 replies; 8+ messages in thread
From: Vivek Natarajan @ 2011-02-25 12:01 UTC (permalink / raw)
To: linville; +Cc: linux-wireless
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
---
drivers/net/wireless/ath/ath9k/ar9003_hw.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_hw.c b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
index 6fa3c24..7f5de6e 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
@@ -78,15 +78,15 @@ static void ar9003_hw_init_mode_regs(struct ath_hw *ah)
/* Awake Setting */
INIT_INI_ARRAY(&ah->iniPcieSerdes,
- ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1,
- ARRAY_SIZE(ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1),
+ ar9485_1_1_pcie_phy_clkreq_disable_L1,
+ ARRAY_SIZE(ar9485_1_1_pcie_phy_clkreq_disable_L1),
2);
/* Sleep Setting */
INIT_INI_ARRAY(&ah->iniPcieSerdesLowPower,
- ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1,
- ARRAY_SIZE(ar9485_1_1_pcie_phy_pll_on_clkreq_disable_L1),
+ ar9485_1_1_pcie_phy_clkreq_disable_L1,
+ ARRAY_SIZE(ar9485_1_1_pcie_phy_clkreq_disable_L1),
2);
} else if (AR_SREV_9485(ah)) {
/* mac */
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] ath9k: Cancel pll_work while disabling radio.
2011-02-25 12:01 [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Vivek Natarajan
@ 2011-02-25 12:01 ` Vivek Natarajan
2011-02-25 12:01 ` [PATCH 3/3] ath9k: Fix compilation warning Vivek Natarajan
2011-03-17 0:04 ` [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Luis R. Rodriguez
1 sibling, 1 reply; 8+ messages in thread
From: Vivek Natarajan @ 2011-02-25 12:01 UTC (permalink / raw)
To: linville; +Cc: linux-wireless
pll_work should be cancelled on full_sleep or it may cause
redundant chip reset.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
---
drivers/net/wireless/ath/ath9k/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index a715500..9b03b5a 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -910,6 +910,8 @@ void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw)
ath9k_hw_set_gpio(ah, ah->led_pin, 0);
ieee80211_wake_queues(hw);
+ ieee80211_queue_delayed_work(hw, &sc->hw_pll_work, HZ/2);
+
out:
spin_unlock_bh(&sc->sc_pcu_lock);
@@ -923,6 +925,8 @@ void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw)
int r;
ath9k_ps_wakeup(sc);
+ cancel_delayed_work_sync(&sc->hw_pll_work);
+
spin_lock_bh(&sc->sc_pcu_lock);
ieee80211_stop_queues(hw);
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] ath9k: Fix compilation warning.
2011-02-25 12:01 ` [PATCH 2/3] ath9k: Cancel pll_work while disabling radio Vivek Natarajan
@ 2011-02-25 12:01 ` Vivek Natarajan
2011-02-25 12:22 ` Vasanthakumar Thiagarajan
0 siblings, 1 reply; 8+ messages in thread
From: Vivek Natarajan @ 2011-02-25 12:01 UTC (permalink / raw)
To: linville; +Cc: linux-wireless
Initialize txq to avoid this warning:
drivers/net/wireless/ath/ath9k/main.c: In function ‘ath9k_flush’:
drivers/net/wireless/ath/ath9k/main.c:2138: warning: ‘txq’ may be used uninitialized in this function
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
---
drivers/net/wireless/ath/ath9k/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 9b03b5a..238fb76 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -2135,7 +2135,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
{
#define ATH_FLUSH_TIMEOUT 60 /* ms */
struct ath_softc *sc = hw->priv;
- struct ath_txq *txq;
+ struct ath_txq *txq = NULL;
struct ath_hw *ah = sc->sc_ah;
struct ath_common *common = ath9k_hw_common(ah);
int i, j, npend = 0;
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] ath9k: Fix compilation warning.
2011-02-25 12:01 ` [PATCH 3/3] ath9k: Fix compilation warning Vivek Natarajan
@ 2011-02-25 12:22 ` Vasanthakumar Thiagarajan
0 siblings, 0 replies; 8+ messages in thread
From: Vasanthakumar Thiagarajan @ 2011-02-25 12:22 UTC (permalink / raw)
To: Vivek Natarajan; +Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
On Fri, Feb 25, 2011 at 05:31:03PM +0530, Vivek Natarajan wrote:
> Initialize txq to avoid this warning:
>
> drivers/net/wireless/ath/ath9k/main.c: In function ‘ath9k_flush’:
> drivers/net/wireless/ath/ath9k/main.c:2138: warning: ‘txq’ may be used uninitialized in this function
thanks, my gcc (4.4.3) does not complain this :).
>
> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
> ---
> drivers/net/wireless/ath/ath9k/main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 9b03b5a..238fb76 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -2135,7 +2135,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
> {
> #define ATH_FLUSH_TIMEOUT 60 /* ms */
> struct ath_softc *sc = hw->priv;
> - struct ath_txq *txq;
> + struct ath_txq *txq = NULL;
> struct ath_hw *ah = sc->sc_ah;
> struct ath_common *common = ath9k_hw_common(ah);
> int i, j, npend = 0;
> --
> 1.6.3.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version.
2011-02-25 12:01 [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Vivek Natarajan
2011-02-25 12:01 ` [PATCH 2/3] ath9k: Cancel pll_work while disabling radio Vivek Natarajan
@ 2011-03-17 0:04 ` Luis R. Rodriguez
2011-03-17 18:38 ` Luis R. Rodriguez
1 sibling, 1 reply; 8+ messages in thread
From: Luis R. Rodriguez @ 2011-03-17 0:04 UTC (permalink / raw)
To: Vivek Natarajan; +Cc: linville, linux-wireless
On Fri, Feb 25, 2011 at 4:01 AM, Vivek Natarajan <vnatarajan@atheros.com> wrote:
> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Was this a stable fix? If not why not?
Luis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version.
2011-03-17 0:04 ` [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Luis R. Rodriguez
@ 2011-03-17 18:38 ` Luis R. Rodriguez
2011-03-17 18:46 ` Luis R. Rodriguez
0 siblings, 1 reply; 8+ messages in thread
From: Luis R. Rodriguez @ 2011-03-17 18:38 UTC (permalink / raw)
To: Vivek Natarajan
Cc: linville, linux-wireless, Jack Lee, Carl Huang, David Quan,
Nael Atallah, Sarvesh Shrivastava
On Wed, Mar 16, 2011 at 5:04 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Fri, Feb 25, 2011 at 4:01 AM, Vivek Natarajan <vnatarajan@atheros.com> wrote:
>> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
>
> Was this a stable fix? If not why not?
This certainly smells like a stable fix, this seems similar to this other fix:
commit 58c5296991d233f2e492aa7a884635bba478cf12
Author: Luis R. Rodriguez <lrodriguez@atheros.com>
Date: Thu Jan 13 18:19:29 2011 -0800
ath9k_hw: ASPM interoperability fix for AR9380/AR9382
There is an interoperability with AR9382/AR9380 in L1 state with a
few root complexes which can cause a hang. This is fixed by
setting some work around bits on the PCIE PHY. We fix by using
a new ini array to modify these bits when the radio is idle.
Cc: stable@kernel.org
Cc: Jack Lee <jack.lee@atheros.com>
Cc: Carl Huang <carl.huang@atheros.com>
Cc: David Quan <david.quan@atheros.com>
Cc: Nael Atallah <nael.atallah@atheros.com>
Cc: Sarvesh Shrivastava <sarvesh.shrivastava@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Without this patch I believe we will get AR9485 hanging in L1 state
with some root complexes. Can someone confirm?
Vivek, in the future can you please elaborate a little more on the
commit log entries and if its a "fix" of some sort elaborate on the
impact of not applying th patch.
Thanks,
Luis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version.
2011-03-17 18:38 ` Luis R. Rodriguez
@ 2011-03-17 18:46 ` Luis R. Rodriguez
2011-03-18 0:39 ` Vivek Natarajan
0 siblings, 1 reply; 8+ messages in thread
From: Luis R. Rodriguez @ 2011-03-17 18:46 UTC (permalink / raw)
To: Vivek Natarajan, Sarvesh Shrivastava
Cc: linville, linux-wireless, Jack Lee, Carl Huang, David Quan,
Nael Atallah
On Thu, Mar 17, 2011 at 11:38 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Wed, Mar 16, 2011 at 5:04 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>> On Fri, Feb 25, 2011 at 4:01 AM, Vivek Natarajan <vnatarajan@atheros.com> wrote:
>>> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
>>
>> Was this a stable fix? If not why not?
>
> This certainly smells like a stable fix
OK so AR9485 1.1 support did not make it into 2.6.38, and this fix is
applicable only to AR9485 1.1 so the patch in question is not
applicable to stable. The 2.6.38 release however does have AR9485 1.0
support. Will we have any devices in the field with AR9485 1.0 ? Did
that revision not require a similar fix? On 2.6.38 and on linux-next I
see we have for 1.0:
/* Awake Setting */
INIT_INI_ARRAY(&ah->iniPcieSerdes,
ar9485_1_0_pcie_phy_pll_on_clkreq_disable_L1,
ARRAY_SIZE(ar9485_1_0_pcie_phy_pll_on_clkreq_disable_L1),
2);
/* Sleep Setting */
INIT_INI_ARRAY(&ah->iniPcieSerdesLowPower,
ar9485_1_0_pcie_phy_pll_on_clkreq_enable_L1,
ARRAY_SIZE(ar9485_1_0_pcie_phy_pll_on_clkreq_enable_L1),
2);
Luis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version.
2011-03-17 18:46 ` Luis R. Rodriguez
@ 2011-03-18 0:39 ` Vivek Natarajan
0 siblings, 0 replies; 8+ messages in thread
From: Vivek Natarajan @ 2011-03-18 0:39 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: Vivek Natarajan, Sarvesh Shrivastava, linville, linux-wireless,
Jack Lee, Carl Huang, David Quan, Nael Atallah
On Fri, Mar 18, 2011 at 12:16 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Thu, Mar 17, 2011 at 11:38 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>> On Wed, Mar 16, 2011 at 5:04 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>>> On Fri, Feb 25, 2011 at 4:01 AM, Vivek Natarajan <vnatarajan@atheros.com> wrote:
>>>> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
>>>
>>> Was this a stable fix? If not why not?
>>
>> This certainly smells like a stable fix
>
> OK so AR9485 1.1 support did not make it into 2.6.38, and this fix is
> applicable only to AR9485 1.1 so the patch in question is not
> applicable to stable. The 2.6.38 release however does have AR9485 1.0
> support. Will we have any devices in the field with AR9485 1.0 ? Did
> that revision not require a similar fix? On 2.6.38 and on linux-next I
> see we have for 1.0:
>
> /* Awake Setting */
>
> INIT_INI_ARRAY(&ah->iniPcieSerdes,
> ar9485_1_0_pcie_phy_pll_on_clkreq_disable_L1,
>
> ARRAY_SIZE(ar9485_1_0_pcie_phy_pll_on_clkreq_disable_L1),
> 2);
>
> /* Sleep Setting */
>
> INIT_INI_ARRAY(&ah->iniPcieSerdesLowPower,
> ar9485_1_0_pcie_phy_pll_on_clkreq_enable_L1,
>
> ARRAY_SIZE(ar9485_1_0_pcie_phy_pll_on_clkreq_enable_L1),
> 2);
We did not notice any issue with the older code atleast from my
testing. There was an error in porting the internal codebase for
AR9485 1.0 which is fixed by the above patch.
Thanks
Vivek.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-03-18 0:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 12:01 [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Vivek Natarajan
2011-02-25 12:01 ` [PATCH 2/3] ath9k: Cancel pll_work while disabling radio Vivek Natarajan
2011-02-25 12:01 ` [PATCH 3/3] ath9k: Fix compilation warning Vivek Natarajan
2011-02-25 12:22 ` Vasanthakumar Thiagarajan
2011-03-17 0:04 ` [PATCH 1/3] ath9k_hw: Fix pcie_serdes setting for AR9485 1.1 version Luis R. Rodriguez
2011-03-17 18:38 ` Luis R. Rodriguez
2011-03-17 18:46 ` Luis R. Rodriguez
2011-03-18 0:39 ` Vivek Natarajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).