linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [Patch] :Fix ISR return value in i2c-mpc.c
@ 2014-12-12  8:08 Amit Tomar
  2014-12-12 10:50 ` Alexander Graf
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Amit Tomar @ 2014-12-12  8:08 UTC (permalink / raw)
  To: linuxppc-dev@lists.ozlabs.org; +Cc: agraf@suse.de

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

ISR should return IRQ_HANDLED only in case of handling something.


Signed-off-by: Amit Singh Tomar <amit.tomar@freescale.com>
---
drivers/i2c/busses/i2c-mpc.c |    3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
index 0edf630..7a3136f 100644
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/drivers/i2c/busses/i2c-mpc.c
@@ -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
--
1.7.9.5


[-- Attachment #2: Type: text/html, Size: 3559 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-13  5:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-12  8:08 [Patch] :Fix ISR return value in i2c-mpc.c Amit Tomar
2014-12-12 10:50 ` Alexander Graf
2014-12-12 10:52 ` Alexander Graf
2014-12-12 11:17 ` Amit Tomar
2014-12-12 21:10   ` Scott Wood
2014-12-13  5:02     ` Amit Tomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).