diff options
author | Florian Fainelli <[email protected]> | 2009-07-08 03:05:14 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2009-07-08 10:49:26 -0700 |
commit | 35976d4d557c5017c2180a083e8bd970cf73f3d5 (patch) | |
tree | 34eb56d3e4fa5697e3b5ccee545042a07f8342ab | |
parent | 345aa031207d02d7438c1aa96ed9315911ecd745 (diff) |
r6040: restore MIER register correctly when IRQ line is shared
When the r6040 device IRQ line is shared we will enter the driver
interrupt service routine, mask off the device interrupt enable
register (MIER) and return with IRQ_NONE, we would then leave the
device with interrupts disabled, this patch fixes that issue.
Reported-by: Steve Holland <[email protected]>
Signed-off-by: Joe Chou <[email protected]>
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | drivers/net/r6040.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index ed63d23a6452..70aac35dc2db 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c @@ -704,8 +704,11 @@ static irqreturn_t r6040_interrupt(int irq, void *dev_id) /* Read MISR status and clear */ status = ioread16(ioaddr + MISR); - if (status == 0x0000 || status == 0xffff) + if (status == 0x0000 || status == 0xffff) { + /* Restore RDC MAC interrupt */ + iowrite16(misr, ioaddr + MIER); return IRQ_NONE; + } /* RX interrupt request */ if (status & RX_INTS) { |