* [PATCH] ath9k: wake up chip before initializing PAPRD table
@ 2011-05-24 5:01 Mohammed Shafi Shajakhan
2011-05-24 6:20 ` Senthil Balasubramanian
0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Shafi Shajakhan @ 2011-05-24 5:01 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, lrodriguez, Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
in PAPRD table initialization path we have register read. so make sure
that the chip is awake. currently PAPRD is disabled.
Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
---
drivers/net/wireless/ath/ath9k/main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index a198ee3..af8aa9e 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -394,6 +394,8 @@ void ath_paprd_calibrate(struct work_struct *work)
if (!caldata)
return;
+ ath9k_ps_wakeup(sc);
+
if (ar9003_paprd_init_table(ah) < 0)
return;
@@ -411,7 +413,6 @@ void ath_paprd_calibrate(struct work_struct *work)
memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
- ath9k_ps_wakeup(sc);
for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) {
if (!(common->tx_chainmask & BIT(chain)))
continue;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] ath9k: wake up chip before initializing PAPRD table
2011-05-24 5:01 [PATCH] ath9k: wake up chip before initializing PAPRD table Mohammed Shafi Shajakhan
@ 2011-05-24 6:20 ` Senthil Balasubramanian
2011-05-24 6:31 ` Mohammed Shafi
2011-05-24 7:06 ` Mohammed Shafi
0 siblings, 2 replies; 4+ messages in thread
From: Senthil Balasubramanian @ 2011-05-24 6:20 UTC (permalink / raw)
To: Mohammed Shafi Shajakhan
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
Luis Rodriguez
On Tue, May 24, 2011 at 10:31:03AM +0530, Mohammed Shafi Shajakhan wrote:
> From: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
>
> in PAPRD table initialization path we have register read. so make sure
> that the chip is awake. currently PAPRD is disabled.
>
> Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
> ---
> drivers/net/wireless/ath/ath9k/main.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index a198ee3..af8aa9e 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -394,6 +394,8 @@ void ath_paprd_calibrate(struct work_struct *work)
> if (!caldata)
> return;
>
> + ath9k_ps_wakeup(sc);
> +
> if (ar9003_paprd_init_table(ah) < 0)
> return;
Have you tested power save with this patch? ps_restore is missing here...
>
> @@ -411,7 +413,6 @@ void ath_paprd_calibrate(struct work_struct *work)
> memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
> memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
>
> - ath9k_ps_wakeup(sc);
> for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) {
> if (!(common->tx_chainmask & BIT(chain)))
> continue;
> --
> 1.7.0.4
>
> --
> 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] 4+ messages in thread* Re: [PATCH] ath9k: wake up chip before initializing PAPRD table
2011-05-24 6:20 ` Senthil Balasubramanian
@ 2011-05-24 6:31 ` Mohammed Shafi
2011-05-24 7:06 ` Mohammed Shafi
1 sibling, 0 replies; 4+ messages in thread
From: Mohammed Shafi @ 2011-05-24 6:31 UTC (permalink / raw)
To: Senthilkumar Balasubramanian
Cc: Mohammed Shajakhan, linville@tuxdriver.com,
linux-wireless@vger.kernel.org, Luis Rodriguez
On Tuesday 24 May 2011 11:50 AM, Senthilkumar Balasubramanian wrote:
> On Tue, May 24, 2011 at 10:31:03AM +0530, Mohammed Shafi Shajakhan wrote:
>> From: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>>
>> in PAPRD table initialization path we have register read. so make sure
>> that the chip is awake. currently PAPRD is disabled.
>>
>> Signed-off-by: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>> ---
>> drivers/net/wireless/ath/ath9k/main.c | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
>> index a198ee3..af8aa9e 100644
>> --- a/drivers/net/wireless/ath/ath9k/main.c
>> +++ b/drivers/net/wireless/ath/ath9k/main.c
>> @@ -394,6 +394,8 @@ void ath_paprd_calibrate(struct work_struct *work)
>> if (!caldata)
>> return;
>>
>> + ath9k_ps_wakeup(sc);
>> +
>> if (ar9003_paprd_init_table(ah)< 0)
>> return;
> Have you tested power save with this patch? ps_restore is missing here...
Senthil, I will look into that.
>>
>> @@ -411,7 +413,6 @@ void ath_paprd_calibrate(struct work_struct *work)
>> memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
>> memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
>>
>> - ath9k_ps_wakeup(sc);
>> for (chain = 0; chain< AR9300_MAX_CHAINS; chain++) {
>> if (!(common->tx_chainmask& BIT(chain)))
>> continue;
>> --
>> 1.7.0.4
>>
>> --
>> 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
> .
>
--
thanks,
shafi
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] ath9k: wake up chip before initializing PAPRD table
2011-05-24 6:20 ` Senthil Balasubramanian
2011-05-24 6:31 ` Mohammed Shafi
@ 2011-05-24 7:06 ` Mohammed Shafi
1 sibling, 0 replies; 4+ messages in thread
From: Mohammed Shafi @ 2011-05-24 7:06 UTC (permalink / raw)
To: Senthilkumar Balasubramanian
Cc: Mohammed Shajakhan, linville@tuxdriver.com,
linux-wireless@vger.kernel.org, Luis Rodriguez
On Tuesday 24 May 2011 11:50 AM, Senthilkumar Balasubramanian wrote:
> On Tue, May 24, 2011 at 10:31:03AM +0530, Mohammed Shafi Shajakhan wrote:
>> From: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>>
>> in PAPRD table initialization path we have register read. so make sure
>> that the chip is awake. currently PAPRD is disabled.
>>
>> Signed-off-by: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>> ---
>> drivers/net/wireless/ath/ath9k/main.c | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
>> index a198ee3..af8aa9e 100644
>> --- a/drivers/net/wireless/ath/ath9k/main.c
>> +++ b/drivers/net/wireless/ath/ath9k/main.c
>> @@ -394,6 +394,8 @@ void ath_paprd_calibrate(struct work_struct *work)
>> if (!caldata)
>> return;
>>
>> + ath9k_ps_wakeup(sc);
>> +
>> if (ar9003_paprd_init_table(ah)< 0)
>> return;
> Have you tested power save with this patch? ps_restore is missing here...
Sorry Senthil and thanks for pointing it out, it would have introduced a
serious regression in Power Save when the device is in idle state(when
PAPRD enabled) and when it just returns from as we are never doing power
save restore
if (ar9003_paprd_init_table(ah) < 0)
return;
I will fix it properly by using goto fail_paprd as you had suggested.
>>
>> @@ -411,7 +413,6 @@ void ath_paprd_calibrate(struct work_struct *work)
>> memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
>> memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
>>
>> - ath9k_ps_wakeup(sc);
>> for (chain = 0; chain< AR9300_MAX_CHAINS; chain++) {
>> if (!(common->tx_chainmask& BIT(chain)))
>> continue;
>> --
>> 1.7.0.4
>>
>> --
>> 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
> .
>
--
thanks,
shafi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-24 7:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 5:01 [PATCH] ath9k: wake up chip before initializing PAPRD table Mohammed Shafi Shajakhan
2011-05-24 6:20 ` Senthil Balasubramanian
2011-05-24 6:31 ` Mohammed Shafi
2011-05-24 7:06 ` Mohammed Shafi
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).