]> asedeno.scripts.mit.edu Git - linux.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)
committerThierry Reding <treding@nvidia.com>
Tue, 1 Oct 2019 15:20:26 +0000 (17:20 +0200)
commitc9e753767a9c75d2044fb7343950a6a992d34a16
treee954b2bb5d8e9becf15df4abe00d60ca6a238008
parent0a728e0bda7c14921723362af86b0ba30e5d6c79
soc/tegra: pmc: Fix crashes for hierarchical interrupts

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>
drivers/soc/tegra/pmc.c