]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ARM: iop32x: offset IRQ numbers by 1
authorArnd Bergmann <arnd@arndb.de>
Tue, 30 Nov 2021 10:16:41 +0000 (11:16 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:19:36 +0000 (15:19 +0200)
commit51073f4a97e1cb5da8aef4a8c878cae500d51ffb
treef6809234dc97572b57465719e8dc5e6ab8c9d635
parentc4736244815e5c484fa87d0433b6ebe217a66565
ARM: iop32x: offset IRQ numbers by 1

BugLink: https://bugs.launchpad.net/bugs/1971497
commit 9d67412f24cc3a2c05f35f7c856addb07a2960ce upstream.

iop32x is one of the last platforms to use IRQ 0, and this has apparently
stopped working in a 2014 cleanup without anyone noticing. This interrupt
is used for the DMA engine, so most likely this has not actually worked
in the past 7 years, but it's also not essential for using this board.

I'm splitting out this change from my GENERIC_IRQ_MULTI_HANDLER
conversion so it can be backported if anyone cares.

Fixes: a71b092a9c68 ("ARM: Convert handle_IRQ to use __handle_domain_irq")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[ardb: take +1 offset into account in mask/unmask and init as well]
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Tested-by: Vladimir Murzin <vladimir.murzin@arm.com> # ARMv7M
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/mach-iop32x/include/mach/entry-macro.S
arch/arm/mach-iop32x/include/mach/irqs.h
arch/arm/mach-iop32x/irq.c
arch/arm/mach-iop32x/irqs.h