Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149853
b: refs/heads/master
c: 0ef1f16
h: refs/heads/master
i:
  149851: 380c69f
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Apr 22, 2009
1 parent 7704938 commit 14e3989
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eef7a57430c83b0419ba943bb1650ed5c349d454
refs/heads/master: 0ef1f168b6bc82b0b157c568e764b75961867970
14 changes: 5 additions & 9 deletions trunk/drivers/net/wireless/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static void ath9k_hw_set_defaults(struct ath_hw *ah)
ah->config.spurchans[i][1] = AR_NO_SPUR;
}

ah->config.intr_mitigation = 1;
ah->config.intr_mitigation = true;

/*
* We need this for PCI devices only (Cardbus, PCI, miniPCI)
Expand Down Expand Up @@ -599,9 +599,6 @@ static struct ath_hw *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc,

ath9k_hw_set_defaults(ah);

if (ah->config.intr_mitigation != 0)
ah->intr_mitigation = true;

if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON)) {
DPRINTF(sc, ATH_DBG_FATAL, "Couldn't reset chip\n");
ecode = -EIO;
Expand Down Expand Up @@ -1028,7 +1025,7 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
AR_IMR_RXORN |
AR_IMR_BCNMISC;

if (ah->intr_mitigation)
if (ah->config.intr_mitigation)
ah->mask_reg |= AR_IMR_RXINTM | AR_IMR_RXMINTR;
else
ah->mask_reg |= AR_IMR_RXOK;
Expand Down Expand Up @@ -2301,8 +2298,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,

REG_WRITE(ah, AR_OBS, 8);

if (ah->intr_mitigation) {

if (ah->config.intr_mitigation) {
REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_LAST, 500);
REG_RMW_FIELD(ah, AR_RIMT, AR_RIMT_FIRST, 2000);
}
Expand Down Expand Up @@ -2908,7 +2904,7 @@ bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked)

*masked = isr & ATH9K_INT_COMMON;

if (ah->intr_mitigation) {
if (ah->config.intr_mitigation) {
if (isr & (AR_ISR_RXMINTR | AR_ISR_RXINTM))
*masked |= ATH9K_INT_RX;
}
Expand Down Expand Up @@ -3026,7 +3022,7 @@ enum ath9k_int ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints)
}
if (ints & ATH9K_INT_RX) {
mask |= AR_IMR_RXERR;
if (ah->intr_mitigation)
if (ah->config.intr_mitigation)
mask |= AR_IMR_RXMINTR | AR_IMR_RXINTM;
else
mask |= AR_IMR_RXOK | AR_IMR_RXDESC;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/net/wireless/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ struct ath9k_ops_config {
u16 diversity_control;
u16 antenna_switch_swap;
int serialize_regmode;
int intr_mitigation;
bool intr_mitigation;
#define SPUR_DISABLE 0
#define SPUR_ENABLE_IOCTL 1
#define SPUR_ENABLE_EEPROM 2
Expand Down Expand Up @@ -524,7 +524,6 @@ struct ath_hw {
enum ath9k_ani_cmd ani_function;

u32 intr_txqs;
bool intr_mitigation;
enum ath9k_ht_extprotspacing extprotspacing;
u8 txchainmask;
u8 rxchainmask;
Expand Down

0 comments on commit 14e3989

Please sign in to comment.