Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] ath9k: Disable ASPM only for AR9285
@ 2012-09-21 18:44 Sujith Manoharan
  2012-09-22  3:30 ` Luis R. Rodriguez
  2012-09-24 14:32 ` Paul Stewart
  0 siblings, 2 replies; 5+ messages in thread
From: Sujith Manoharan @ 2012-09-21 18:44 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis Rodriguez, Rajkumar Manoharan

Currently, ASPM is disabled for all WLAN+BT combo chipsets
when BTCOEX is enabled. This is incorrect since the workaround
is required only for WB195, which is a AR9285+AR3011 combo
solution. Fix this by checking for the HW version when enabling
the workaround.

Cc: stable@vger.kernel.org
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/pci.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index a8f6126..c0c5996 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -128,8 +128,9 @@ static void ath_pci_aspm_init(struct ath_common *common)
 	if (!parent)
 		return;
 
-	if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) {
-		/* Bluetooth coexistance requires disabling ASPM. */
+	if ((ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) &&
+	    (AR_SREV_9285(ah))) {
+		/* Bluetooth coexistance requires disabling ASPM for AR9285. */
 		pci_read_config_byte(pdev, pos + PCI_EXP_LNKCTL, &aspm);
 		aspm &= ~(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
 		pci_write_config_byte(pdev, pos + PCI_EXP_LNKCTL, aspm);
-- 
1.7.12


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ath9k: Disable ASPM only for AR9285
  2012-09-21 18:44 [PATCH] ath9k: Disable ASPM only for AR9285 Sujith Manoharan
@ 2012-09-22  3:30 ` Luis R. Rodriguez
  2012-09-25 22:01   ` Luis R. Rodriguez
  2012-09-24 14:32 ` Paul Stewart
  1 sibling, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2012-09-22  3:30 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: linville, linux-wireless, Rajkumar Manoharan, backports

On Fri, Sep 21, 2012 at 11:44 AM, Sujith Manoharan
<c_manoha@qualcomm.com> wrote:
> Currently, ASPM is disabled for all WLAN+BT combo chipsets
> when BTCOEX is enabled. This is incorrect since the workaround
> is required only for WB195, which is a AR9285+AR3011 combo
> solution. Fix this by checking for the HW version when enabling
> the workaround.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>

I've sucked this into the origin/linux-3.5.y branch, and am working on
ckmake test compiling a new stable release that brings up on to
v3.5.4. All changes have been pushed. The new Bluetooth stable patches
from linux-next were plain stupid but I've tried backporting them.

waiting on ckmake result.

  Luis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ath9k: Disable ASPM only for AR9285
  2012-09-21 18:44 [PATCH] ath9k: Disable ASPM only for AR9285 Sujith Manoharan
  2012-09-22  3:30 ` Luis R. Rodriguez
@ 2012-09-24 14:32 ` Paul Stewart
  2012-09-24 15:03   ` Sujith Manoharan
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Stewart @ 2012-09-24 14:32 UTC (permalink / raw)
  To: Sujith Manoharan
  Cc: linville, linux-wireless, Luis Rodriguez, Rajkumar Manoharan

On Fri, Sep 21, 2012 at 11:44 AM, Sujith Manoharan
<c_manoha@qualcomm.com> wrote:
> Currently, ASPM is disabled for all WLAN+BT combo chipsets
> when BTCOEX is enabled. This is incorrect since the workaround
> is required only for WB195, which is a AR9285+AR3011 combo
> solution. Fix this by checking for the HW version when enabling
> the workaround.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Tested-by: Paul Stewart <pstew@chromium.org>
> ---
>  drivers/net/wireless/ath/ath9k/pci.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
> index a8f6126..c0c5996 100644
> --- a/drivers/net/wireless/ath/ath9k/pci.c
> +++ b/drivers/net/wireless/ath/ath9k/pci.c
> @@ -128,8 +128,9 @@ static void ath_pci_aspm_init(struct ath_common *common)
>         if (!parent)
>                 return;
>
> -       if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) {
> -               /* Bluetooth coexistance requires disabling ASPM. */
> +       if ((ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) &&
> +           (AR_SREV_9285(ah))) {
> +               /* Bluetooth coexistance requires disabling ASPM for AR9285. */
>                 pci_read_config_byte(pdev, pos + PCI_EXP_LNKCTL, &aspm);
>                 aspm &= ~(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
>                 pci_write_config_byte(pdev, pos + PCI_EXP_LNKCTL, aspm);
> --
> 1.7.12
>
> --
> 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] 5+ messages in thread

* Re: [PATCH] ath9k: Disable ASPM only for AR9285
  2012-09-24 14:32 ` Paul Stewart
@ 2012-09-24 15:03   ` Sujith Manoharan
  0 siblings, 0 replies; 5+ messages in thread
From: Sujith Manoharan @ 2012-09-24 15:03 UTC (permalink / raw)
  To: Paul Stewart
  Cc: Sujith Manoharan, linville, linux-wireless, Luis Rodriguez,
	Rajkumar Manoharan

Paul Stewart wrote:
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
> Tested-by: Paul Stewart <pstew@chromium.org>

Thanks !

Sujith

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ath9k: Disable ASPM only for AR9285
  2012-09-22  3:30 ` Luis R. Rodriguez
@ 2012-09-25 22:01   ` Luis R. Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2012-09-25 22:01 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: linville, linux-wireless, Rajkumar Manoharan, backports

On Fri, Sep 21, 2012 at 8:30 PM, Luis R. Rodriguez
<rodrigue@qca.qualcomm.com> wrote:
> On Fri, Sep 21, 2012 at 11:44 AM, Sujith Manoharan
> <c_manoha@qualcomm.com> wrote:
>> Currently, ASPM is disabled for all WLAN+BT combo chipsets
>> when BTCOEX is enabled. This is incorrect since the workaround
>> is required only for WB195, which is a AR9285+AR3011 combo
>> solution. Fix this by checking for the HW version when enabling
>> the workaround.
>>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
>
> I've sucked this into the origin/linux-3.5.y branch, and am working on
> ckmake test compiling a new stable release that brings up on to
> v3.5.4. All changes have been pushed. The new Bluetooth stable patches
> from linux-next were plain stupid but I've tried backporting them.
>
> waiting on ckmake result.

All ckmake tests passed, uploaded all new releases based on new v3.5.4
and with this patch applied.

http://wireless.kernel.org/en/users/Download/stable#compat-wireless_3.5_stable_releases

  Luis

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-25 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 18:44 [PATCH] ath9k: Disable ASPM only for AR9285 Sujith Manoharan
2012-09-22  3:30 ` Luis R. Rodriguez
2012-09-25 22:01   ` Luis R. Rodriguez
2012-09-24 14:32 ` Paul Stewart
2012-09-24 15:03   ` Sujith Manoharan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox