diff options
author | akeemting <akeem@jmicron.com> | 2008-10-08 22:50:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 22:51:32 -0400 |
commit | 576b5223e2caa0f19afb8ac17455759c214370ce (patch) | |
tree | 0cfd422dbf935fe2878f8b160b4649e6997589f7 /drivers/net/jme.c | |
parent | a821ebe580c535e3e8e354c6ab10516a0e95e202 (diff) |
jme: Faulty IRQ handle bug fix
Fix IRQ handle bug when interrupt mode.
The driver was incorrectly handled and returned IRQ_HANDLED
while the device is not generating the interrupt.
It happened due to faulty determination of interrupt status register.
Found by: "Ethan" <ethanhsiao@jmicron.com>
Fixed by: "akeemting" <akeem@jmicron.com>
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r-- | drivers/net/jme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 635f616fd974..3ab2442cd228 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -1463,7 +1463,7 @@ jme_intr(int irq, void *dev_id) | |||
1463 | /* | 1463 | /* |
1464 | * Check if it's really an interrupt for us | 1464 | * Check if it's really an interrupt for us |
1465 | */ | 1465 | */ |
1466 | if (unlikely(intrstat == 0)) | 1466 | if (unlikely((intrstat & INTR_ENABLE) == 0)) |
1467 | return IRQ_NONE; | 1467 | return IRQ_NONE; |
1468 | 1468 | ||
1469 | /* | 1469 | /* |