Commit 2e08ac7e authored by Michael Wu's avatar Michael Wu Committed by David S. Miller

[PATCH] adm8211: kill interrupt loop

Looping in the interrupt handler is unnecessary.
Signed-off-by: default avatarMichael Wu <flamingice@sourmilk.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3a1532f2
...@@ -458,51 +458,45 @@ do { \ ...@@ -458,51 +458,45 @@ do { \
struct ieee80211_hw *dev = dev_id; struct ieee80211_hw *dev = dev_id;
struct adm8211_priv *priv = dev->priv; struct adm8211_priv *priv = dev->priv;
unsigned int count = 0; u32 stsr = ADM8211_CSR_READ(STSR);
u32 stsr; ADM8211_CSR_WRITE(STSR, stsr);
if (stsr == 0xffffffff)
do { return IRQ_HANDLED;
stsr = ADM8211_CSR_READ(STSR);
ADM8211_CSR_WRITE(STSR, stsr); if (!(stsr & (ADM8211_STSR_NISS | ADM8211_STSR_AISS)))
if (stsr == 0xffffffff) return IRQ_HANDLED;
return IRQ_HANDLED;
if (stsr & ADM8211_STSR_RCI)
if (!(stsr & (ADM8211_STSR_NISS | ADM8211_STSR_AISS))) adm8211_interrupt_rci(dev);
break; if (stsr & ADM8211_STSR_TCI)
adm8211_interrupt_tci(dev);
if (stsr & ADM8211_STSR_RCI)
adm8211_interrupt_rci(dev); /*ADM8211_INT(LinkOn);*/
if (stsr & ADM8211_STSR_TCI) /*ADM8211_INT(LinkOff);*/
adm8211_interrupt_tci(dev);
ADM8211_INT(PCF);
/*ADM8211_INT(LinkOn);*/ ADM8211_INT(BCNTC);
/*ADM8211_INT(LinkOff);*/ ADM8211_INT(GPINT);
ADM8211_INT(ATIMTC);
ADM8211_INT(PCF); ADM8211_INT(TSFTF);
ADM8211_INT(BCNTC); ADM8211_INT(TSCZ);
ADM8211_INT(GPINT); ADM8211_INT(SQL);
ADM8211_INT(ATIMTC); ADM8211_INT(WEPTD);
ADM8211_INT(TSFTF); ADM8211_INT(ATIME);
ADM8211_INT(TSCZ); /*ADM8211_INT(TBTT);*/
ADM8211_INT(SQL); ADM8211_INT(TEIS);
ADM8211_INT(WEPTD); ADM8211_INT(FBE);
ADM8211_INT(ATIME); ADM8211_INT(REIS);
/*ADM8211_INT(TBTT);*/ ADM8211_INT(GPTT);
ADM8211_INT(TEIS); ADM8211_INT(RPS);
ADM8211_INT(FBE); ADM8211_INT(RDU);
ADM8211_INT(REIS); ADM8211_INT(TUF);
ADM8211_INT(GPTT); /*ADM8211_INT(TRT);*/
ADM8211_INT(RPS); /*ADM8211_INT(TLT);*/
ADM8211_INT(RDU); /*ADM8211_INT(TDU);*/
ADM8211_INT(TUF); ADM8211_INT(TPS);
/*ADM8211_INT(TRT);*/
/*ADM8211_INT(TLT);*/ return IRQ_HANDLED;
/*ADM8211_INT(TDU);*/
ADM8211_INT(TPS);
} while (count++ < 20);
return IRQ_RETVAL(count);
#undef ADM8211_INT #undef ADM8211_INT
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment