diff mbox

[07/12] ath9k_hw: program radio_post_sys2ant initval for AR9565

Message ID 1350287738-18687-8-git-send-email-rmanohar@qca.qualcomm.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Manoharan, Rajkumar Oct. 15, 2012, 7:55 a.m. UTC
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/ar9003_phy.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Sujith Manoharan Oct. 15, 2012, 9:21 a.m. UTC | #1
Rajkumar Manoharan wrote:
> Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
> ---
>  drivers/net/wireless/ath/ath9k/ar9003_phy.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> index 759f5f5..1d6d6ce 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> @@ -749,7 +749,8 @@ static int ar9003_hw_process_ini(struct ath_hw *ah,
>  		ar9003_hw_prog_ini(ah, &ah->iniMac[i], modesIndex);
>  		ar9003_hw_prog_ini(ah, &ah->iniBB[i], modesIndex);
>  		ar9003_hw_prog_ini(ah, &ah->iniRadio[i], modesIndex);
> -		if (i == ATH_INI_POST && AR_SREV_9462_20(ah))
> +		if (i == ATH_INI_POST &&
> +		    (AR_SREV_9462_20(ah) || AR_SREV_9565(ah)))
>  			ar9003_hw_prog_ini(ah,
>  					   &ah->ini_radio_post_sys2ant,
>  					   modesIndex);
> @@ -1424,7 +1425,7 @@ static int ar9003_hw_fast_chan_change(struct ath_hw *ah,
>  	ar9003_hw_prog_ini(ah, &ah->iniBB[ATH_INI_POST], modesIndex);
>  	ar9003_hw_prog_ini(ah, &ah->iniRadio[ATH_INI_POST], modesIndex);
>  
> -	if (AR_SREV_9462_20(ah))
> +	if (AR_SREV_9462_20(ah) || AR_SREV_9565(ah))
>  		ar9003_hw_prog_ini(ah, &ah->ini_radio_post_sys2ant,
>  				   modesIndex);

ah->ini_radio_post_sys2ant() is not initialized for AR9565...

Sujith
--
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
Manoharan, Rajkumar Oct. 15, 2012, 9:34 a.m. UTC | #2
On Mon, Oct 15, 2012 at 02:51:56PM +0530, Sujith Manoharan wrote:
> Rajkumar Manoharan wrote:
> > Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
> > ---
> >  drivers/net/wireless/ath/ath9k/ar9003_phy.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> > index 759f5f5..1d6d6ce 100644
> > --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> > +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> > @@ -749,7 +749,8 @@ static int ar9003_hw_process_ini(struct ath_hw *ah,
> >  		ar9003_hw_prog_ini(ah, &ah->iniMac[i], modesIndex);
> >  		ar9003_hw_prog_ini(ah, &ah->iniBB[i], modesIndex);
> >  		ar9003_hw_prog_ini(ah, &ah->iniRadio[i], modesIndex);
> > -		if (i == ATH_INI_POST && AR_SREV_9462_20(ah))
> > +		if (i == ATH_INI_POST &&
> > +		    (AR_SREV_9462_20(ah) || AR_SREV_9565(ah)))
> >  			ar9003_hw_prog_ini(ah,
> >  					   &ah->ini_radio_post_sys2ant,
> >  					   modesIndex);
> > @@ -1424,7 +1425,7 @@ static int ar9003_hw_fast_chan_change(struct ath_hw *ah,
> >  	ar9003_hw_prog_ini(ah, &ah->iniBB[ATH_INI_POST], modesIndex);
> >  	ar9003_hw_prog_ini(ah, &ah->iniRadio[ATH_INI_POST], modesIndex);
> >  
> > -	if (AR_SREV_9462_20(ah))
> > +	if (AR_SREV_9462_20(ah) || AR_SREV_9565(ah))
> >  		ar9003_hw_prog_ini(ah, &ah->ini_radio_post_sys2ant,
> >  				   modesIndex);
> 
> ah->ini_radio_post_sys2ant() is not initialized for AR9565...
>
Nice. Will drop this in v2.

-Rajkumar
--
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
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
index 759f5f5..1d6d6ce 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
@@ -749,7 +749,8 @@  static int ar9003_hw_process_ini(struct ath_hw *ah,
 		ar9003_hw_prog_ini(ah, &ah->iniMac[i], modesIndex);
 		ar9003_hw_prog_ini(ah, &ah->iniBB[i], modesIndex);
 		ar9003_hw_prog_ini(ah, &ah->iniRadio[i], modesIndex);
-		if (i == ATH_INI_POST && AR_SREV_9462_20(ah))
+		if (i == ATH_INI_POST &&
+		    (AR_SREV_9462_20(ah) || AR_SREV_9565(ah)))
 			ar9003_hw_prog_ini(ah,
 					   &ah->ini_radio_post_sys2ant,
 					   modesIndex);
@@ -1424,7 +1425,7 @@  static int ar9003_hw_fast_chan_change(struct ath_hw *ah,
 	ar9003_hw_prog_ini(ah, &ah->iniBB[ATH_INI_POST], modesIndex);
 	ar9003_hw_prog_ini(ah, &ah->iniRadio[ATH_INI_POST], modesIndex);
 
-	if (AR_SREV_9462_20(ah))
+	if (AR_SREV_9462_20(ah) || AR_SREV_9565(ah))
 		ar9003_hw_prog_ini(ah, &ah->ini_radio_post_sys2ant,
 				   modesIndex);