Skip to content

Commit 0ff5d21

Browse files
geertugregkh
authored andcommitted
sh: mach-dreamcast: Handle virq offset in cascaded IRQ demux
commit 3d20f7a upstream. Take into account the virq offset when translating cascaded 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/7d0cb246c9f1cd24bb1f637ec5cb67e799a4c3b8.1688908227.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5628b9a commit 0ff5d21

File tree

1 file changed

+3
-3
lines changed
  • arch/sh/boards/mach-dreamcast

1 file changed

+3
-3
lines changed

arch/sh/boards/mach-dreamcast/irq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ int systemasic_irq_demux(int irq)
108108
__u32 j, bit;
109109

110110
switch (irq) {
111-
case 13:
111+
case 13 + 16:
112112
level = 0;
113113
break;
114-
case 11:
114+
case 11 + 16:
115115
level = 1;
116116
break;
117-
case 9:
117+
case 9 + 16:
118118
level = 2;
119119
break;
120120
default:

0 commit comments

Comments
 (0)