Skip to content

Commit 5628b9a

Browse files
geertugregkh
authored andcommitted
sh: mach-highlander: Handle virq offset in cascaded IRL demux
commit a2601b8 upstream. Take into account the virq offset when translating cascaded IRL interrupts. Fixes: a8ac296 ("sh: Avoid using IRQ0 on SH3 and SH4") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/4fcb0d08a2b372431c41e04312742dc9e41e1be4.1688908186.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fe7daa3 commit 5628b9a

File tree

1 file changed

+2
-2
lines changed
  • arch/sh/boards/mach-highlander

1 file changed

+2
-2
lines changed

arch/sh/boards/mach-highlander/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ static unsigned char irl2irq[HL_NR_IRL];
389389

390390
static int highlander_irq_demux(int irq)
391391
{
392-
if (irq >= HL_NR_IRL || irq < 0 || !irl2irq[irq])
392+
if (irq >= HL_NR_IRL + 16 || irq < 16 || !irl2irq[irq - 16])
393393
return irq;
394394

395-
return irl2irq[irq];
395+
return irl2irq[irq - 16];
396396
}
397397

398398
static void __init highlander_init_irq(void)

0 commit comments

Comments
 (0)