Search Linux Wireless

Re: [PATCH 3/4] ath9k_hw: Speedup register ops for HTC driver

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

 



On Tue, Mar 15, 2011 at 10:03:32PM +0530, Sujith wrote:
> Rajkumar Manoharan wrote:
> > diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c
> > index fccd87d..995949d 100644
> > --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c
> > +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c
> > @@ -799,6 +799,8 @@ static void ath9k_hw_set_def_power_cal_table(struct ath_hw *ah,
> >  							   pwr_table_offset,
> >  							   &diff);
> >  
> > +			ENABLE_REGWRITE_BUFFER(ah);
> > +
> >  			if ((i == 0) || AR_SREV_5416_20_OR_LATER(ah)) {
> >  				if (OLC_FOR_AR9280_20_LATER) {
> >  					REG_WRITE(ah,
> > @@ -847,6 +849,7 @@ static void ath9k_hw_set_def_power_cal_table(struct ath_hw *ah,
> >  
> >  				regOffset += 4;
> >  			}
> > +			REGWRITE_BUFFER_FLUSH(ah);
> >  		}
> >  	}
> >  
> > @@ -1205,6 +1208,8 @@ static void ath9k_hw_def_set_txpower(struct ath_hw *ah,
> >  		}
> >  	}
> >  
> > +	ENABLE_REGWRITE_BUFFER(ah);
> > +
> >  	REG_WRITE(ah, AR_PHY_POWER_TX_RATE1,
> >  		  ATH9K_POW_SM(ratesArray[rate18mb], 24)
> >  		  | ATH9K_POW_SM(ratesArray[rate12mb], 16)
> > @@ -1291,6 +1296,8 @@ static void ath9k_hw_def_set_txpower(struct ath_hw *ah,
> >  	REG_WRITE(ah, AR_PHY_POWER_TX_SUB,
> >  		  ATH9K_POW_SM(pModal->pwrDecreaseFor3Chain, 6)
> >  		  | ATH9K_POW_SM(pModal->pwrDecreaseFor2Chain, 0));
> > +
> > +	REGWRITE_BUFFER_FLUSH(ah);
> >  }
> >  
> 
> Since this issue was observed in UB95, shouldn't eeprom_9287 be fixed ?

Yeah.. I missed it. send v2 patch. Thanks ;)

--
Rajkumar
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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