Search Linux Wireless

Re: [ath5k-devel] [PATCH 2/8] ath5k: apply the synth voltage tweak only on AR5112 rev 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/7/4 Felix Fietkau <nbd@xxxxxxxxxxx>:
> Might fix some stability issues on newer chips
>
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx>
> ---
>  drivers/net/wireless/ath/ath5k/phy.c |   19 +++++++++++--------
>  1 files changed, 11 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
> index c774468..f66124a 100644
> --- a/drivers/net/wireless/ath/ath5k/phy.c
> +++ b/drivers/net/wireless/ath/ath5k/phy.c
> @@ -970,17 +970,20 @@ static int ath5k_hw_rfregs_init(struct ath5k_hw *ah,
>                        }
>
>                        /* Lower synth voltage on Rev 2 */
> -                       ath5k_hw_rfb_op(ah, rf_regs, 2,
> -                                       AR5K_RF_HIGH_VC_CP, true);
> +                       if (ah->ah_radio == AR5K_RF5112 &&
> +                           (ah->ah_radio_5ghz_revision & AR5K_SREV_REV) > 0) {
> +                               ath5k_hw_rfb_op(ah, rf_regs, 2,
> +                                               AR5K_RF_HIGH_VC_CP, true);
>
> -                       ath5k_hw_rfb_op(ah, rf_regs, 2,
> -                                       AR5K_RF_MID_VC_CP, true);
> +                               ath5k_hw_rfb_op(ah, rf_regs, 2,
> +                                               AR5K_RF_MID_VC_CP, true);
>
> -                       ath5k_hw_rfb_op(ah, rf_regs, 2,
> -                                       AR5K_RF_LOW_VC_CP, true);
> +                               ath5k_hw_rfb_op(ah, rf_regs, 2,
> +                                               AR5K_RF_LOW_VC_CP, true);
>
> -                       ath5k_hw_rfb_op(ah, rf_regs, 2,
> -                                       AR5K_RF_PUSH_UP, true);
> +                               ath5k_hw_rfb_op(ah, rf_regs, 2,
> +                                               AR5K_RF_PUSH_UP, true);
> +                       }
>
>                        /* Decrease power consumption on 5213+ BaseBand */
>                        if (ah->ah_phy_revision >= AR5K_SREV_PHY_5212A) {

Acked-by: Nick Kossifidis <mickflemm@xxxxxxxxx>


-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
��.n��������+%������w��{.n�����{���zW����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux