Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+39 −45
Original line number Diff line number Diff line
@@ -458,17 +458,13 @@ do { \

	struct ieee80211_hw *dev = dev_id;
	struct adm8211_priv *priv = dev->priv;
	unsigned int count = 0;
	u32 stsr;

	do {
		stsr = ADM8211_CSR_READ(STSR);
	u32 stsr = ADM8211_CSR_READ(STSR);
	ADM8211_CSR_WRITE(STSR, stsr);
	if (stsr == 0xffffffff)
		return IRQ_HANDLED;

	if (!(stsr & (ADM8211_STSR_NISS | ADM8211_STSR_AISS)))
			break;
		return IRQ_HANDLED;

	if (stsr & ADM8211_STSR_RCI)
		adm8211_interrupt_rci(dev);
@@ -500,9 +496,7 @@ do { \
	/*ADM8211_INT(TDU);*/
	ADM8211_INT(TPS);

	} while (count++ < 20);

	return IRQ_RETVAL(count);
	return IRQ_HANDLED;

#undef ADM8211_INT
}