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,17 +458,13 @@ do { \ ...@@ -458,17 +458,13 @@ 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;
do {
stsr = ADM8211_CSR_READ(STSR);
ADM8211_CSR_WRITE(STSR, stsr); ADM8211_CSR_WRITE(STSR, stsr);
if (stsr == 0xffffffff) if (stsr == 0xffffffff)
return IRQ_HANDLED; return IRQ_HANDLED;
if (!(stsr & (ADM8211_STSR_NISS | ADM8211_STSR_AISS))) if (!(stsr & (ADM8211_STSR_NISS | ADM8211_STSR_AISS)))
break; return IRQ_HANDLED;
if (stsr & ADM8211_STSR_RCI) if (stsr & ADM8211_STSR_RCI)
adm8211_interrupt_rci(dev); adm8211_interrupt_rci(dev);
...@@ -500,9 +496,7 @@ do { \ ...@@ -500,9 +496,7 @@ do { \
/*ADM8211_INT(TDU);*/ /*ADM8211_INT(TDU);*/
ADM8211_INT(TPS); ADM8211_INT(TPS);
} while (count++ < 20); return IRQ_HANDLED;
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