]> git.baikalelectronics.ru Git - 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)
committerThierry Reding <treding@nvidia.com>
Tue, 1 Oct 2019 15:20:26 +0000 (17:20 +0200)
commitbf4020cfbe4df5847a5435021e7cf32c96d8caf0
treee954b2bb5d8e9becf15df4abe00d60ca6a238008
parent045da95760540ba4d5303af7ad22350be4479756
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: 1ef36db52fe0 ("soc/tegra: pmc: Add wake event support")
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c