sh: hd64461: Handle virq offset for offchip IRQ base and HD64461 IRQ
authorArtur Rojek <contact@artur-rojek.eu>
Mon, 10 Jul 2023 23:31:32 +0000 (01:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:22:18 +0000 (16:22 +0200)
commitc55b552e0b605636e3f210125c7578b025a1dec1
treee03039b2a43b9113638b8207e904bf8f4a54cb5e
parent0ff5d219eb8ae8a4bcdf4ec3e92c26f829d86cda
sh: hd64461: Handle virq offset for offchip IRQ base and HD64461 IRQ

commit 7c28a35e19fafa1d3b367bcd3ec4021427a9397b upstream.

A recent change to start counting SuperH IRQ #s from 16 breaks support
for the Hitachi HD64461 companion chip.

Move the offchip IRQ base and HD64461 IRQ # by 16 in order to
accommodate for the new virq numbering rules.

Fixes: a8ac2961148e ("sh: Avoid using IRQ0 on SH3 and SH4")
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/20230710233132.69734-1-contact@artur-rojek.eu
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sh/cchips/Kconfig
arch/sh/include/asm/hd64461.h