mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
bcma: mips: fix clearing device IRQ
commit cbbc0138ef
upstream.
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.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2686f897e6
commit
8fcd6a440a
1 changed files with 1 additions and 1 deletions
|
@ -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)) &
|
bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0)) &
|
||||||
~(1 << irqflag));
|
~(1 << irqflag));
|
||||||
else
|
else
|
||||||
bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq), 0);
|
bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(oldirq), 0);
|
||||||
|
|
||||||
/* assign the new one */
|
/* assign the new one */
|
||||||
if (irq == 0) {
|
if (irq == 0) {
|
||||||
|
|
Loading…
Reference in a new issue