i2c/mpc: Fix ISR return value
Subsystems (2)
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.
Signed-off-by Amit Singh Tomar <[email protected]>
--- drivers/i2c/busses/i2c-mpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i2c/busses/i2c-mpc.c +2 -1
@@ -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
Wolfram Sang
AppliedQuoted 4 lines · Amit Singh Tomar
ISR should not return
IRQ_HANDLEDfor not handling anything. This patch fixes the return value of ISR for the same case.Signed-off-by Amit Singh Tomar <[email protected]>
Applied to for-next, thanks!