Skip to content

Commit

Permalink
i2c: mpc: Fix ISR return value
Browse files Browse the repository at this point in the history
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 <amit.tomar@freescale.com>
Acked-by: Danielle Costantino <danielle.costantino@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Amit Tomar authored and Wolfram Sang committed Mar 27, 2015
1 parent 98e982b commit 9c836d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/busses/i2c-mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,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
Expand Down

0 comments on commit 9c836d0

Please sign in to comment.