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

Commit 9c836d0c authored by Amit Tomar's avatar Amit Tomar Committed by Wolfram Sang
Browse files

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.

Signed-off-by: default avatarAmit Singh Tomar <amit.tomar@freescale.com>
Acked-by: default avatarDanielle Costantino <danielle.costantino@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 98e982b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -96,9 +96,10 @@ 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_NONE;
}

/* Sometimes 9th clock pulse isn't generated, and slave doesn't release
 * the bus, because it wants to send ACK.