Skip to contentSkip to conversation

i2c/mpc: Fix ISR return value

PATCH Applied Amit Singh Tomar 2 participants 2 messages Mar 27, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c/mpc: Fix ISR return value

ISR should not return IRQ_HANDLED for not handling anything. This patch fixes the return value of ISR for the same case.

---
 drivers/i2c/busses/i2c-mpc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i2c/busses/i2c-mpc.c +2 -1
index c74cc2b..2f20db1 100644
@@ -95,8 +95,9 @@ static irqreturn_t mpc_i2c_isr(int irq, void *dev_id)
 		i2c->interrupt = readb(i2c->base + MPC_I2C_SR);
 		writeb(0, i2c->base + MPC_I2C_SR);
 		wake_up(&i2c->queue);
+		return IRQ_HANDLED;
 	}
-	return IRQ_HANDLED;
+	return IRQ_NONE;
 }
 
 /* Sometimes 9th clock pulse isn't generated, and slave doesn't release
Signature · 1 line
1.7.9.5

A message that is not in the archive (sent off-list or not yet received): 1427460540-7754-1-git-send-email-amit.tomar-KZfg59tc24xl57MIdRCFDg@public.gmane.org

Applied
#2 lore raw
Quoted 4 lines · Amit Singh Tomar

ISR should not return IRQ_HANDLED for not handling anything. This patch fixes the return value of ISR for the same case.

Applied to for-next, thanks!