]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
soc/tegra: pmc: Fix crashes for hierarchical interrupts
authorThierry Reding <treding@nvidia.com>
Tue, 1 Oct 2019 11:48:29 +0000 (13:48 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:27:21 +0000 (16:27 +0100)
commit8c113280952fcb60a474da265378826b9dd19997
treecd1ad4ec421faf821446f5994bff1194567eded3
parent07be4c318a9dc23e4b67e4d8fe4552706b1211be
soc/tegra: pmc: Fix crashes for hierarchical interrupts

BugLink: https://bugs.launchpad.net/bugs/1861091
commit c9e753767a9c75d2044fb7343950a6a992d34a16 upstream.

Interrupts that don't have an associated wake event or GPIO wake events
end up with an associate IRQ chip that is NULL and which causes IRQ code
to crash. This is because we don't implicitly set the parent IRQ chip by
allocating the interrupt at the parent. However, there really isn't a
corresponding interrupt at the parent, so we need to work around this by
setting the special no_irq_chip as the IRQ chip for these interrupts.

Fixes: 19906e6b1667 ("soc/tegra: pmc: Add wake event support")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/soc/tegra/pmc.c