Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] SMTC: Safety net for i8259A interrupts.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Kevin D. Kissell and committed by
Ralf Baechle
c3a005f4 efaa534e

+12
+12
arch/mips/mips-boards/malta/malta_int.c
··· 330 330 (0x100 << MIPSCPU_INT_I8259A)); 331 331 setup_irq_smtc (MIPS_CPU_IRQ_BASE+MIPSCPU_INT_COREHI, 332 332 &corehi_irqaction, (0x100 << MIPSCPU_INT_COREHI)); 333 + /* 334 + * Temporary hack to ensure that the subsidiary device 335 + * interrupts coing in via the i8259A, but associated 336 + * with low IRQ numbers, will restore the Status.IM 337 + * value associated with the i8259A. 338 + */ 339 + { 340 + int i; 341 + 342 + for (i = 0; i < 16; i++) 343 + irq_hwmask[i] = (0x100 << MIPSCPU_INT_I8259A); 344 + } 333 345 #else /* Not SMTC */ 334 346 setup_irq (MIPS_CPU_IRQ_BASE+MIPSCPU_INT_I8259A, &i8259irq); 335 347 setup_irq (MIPS_CPU_IRQ_BASE+MIPSCPU_INT_COREHI, &corehi_irqaction);