Skip to contentSkip to conversation

bcma: mips: fix clearing device IRQ

PATCH In review Rafał Miłecki 2 participants 2 messages Dec 10, 2012 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 bcma: mips: fix clearing device IRQ

We were using wrong IRQ number so clearing wasn't working at all. Depending on a platform this could result in a one device having two interrupts assigned. On BCM4706 this resulted in all IRQs being broken.

---
John: I guess it's too late for 3.7 fixes, so I just hope it'll hit
3.7.x (and olders) via stable.

---
 drivers/bcma/driver_mips.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/bcma/driver_mips.c +1 -1
index c45ded8..792daad 100644
@@ -115,7 +115,7 @@ static void bcma_core_mips_set_irq(struct bcma_device *dev, unsigned int irq)
 			    bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0)) &
 			    ~(1 << irqflag));
 	else
-		bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq), 0);
+		bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(oldirq), 0);
 
 	/* assign the new one */
 	if (irq == 0) {
Signature · 1 line
1.7.7
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Rafał Miłecki

We were using wrong IRQ number so clearing wasn't working at all. Depending on a platform this could result in a one device having two interrupts assigned. On BCM4706 this resulted in all IRQs being broken.

Quoted 21 lines

---
John: I guess it's too late for 3.7 fixes, so I just hope it'll hit
3.7.x (and olders) via stable.

---
 drivers/bcma/driver_mips.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/bcma/driver_mips.c +1 -1
index c45ded8..792daad 100644
@@ -115,7 +115,7 @@ static void bcma_core_mips_set_irq(struct bcma_device *dev, unsigned int irq)
 			    bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0)) &
 			    ~(1 << irqflag));
 	else
-		bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq), 0);
+		bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(oldirq), 0);
 
 	/* assign the new one */
 	if (irq == 0) {