]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: mediatek: mtk-svs: Enable the IRQ later
authorRicardo Ribalda <ribalda@chromium.org>
Tue, 20 Dec 2022 21:35:59 +0000 (22:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:17 +0000 (13:55 +0100)
commit6b99ebd30d65ee5ab8e8dd1d378550911eff5e4f
tree53f9b9241b33d32b3833cc28160328d0a917243d
parent2c82bf3f1762379398c6ec980e42f285a07f09a1
soc: mediatek: mtk-svs: Enable the IRQ later

[ Upstream commit b74952aba6c3f47e7f2c5165abaeefa44c377140 ]

If the system does not come from reset (like when is booted via
kexec()), the peripheral might triger an IRQ before the data structures
are initialised.

Fixes:

[    0.227710] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000f08
[    0.227913] Call trace:
[    0.227918]  svs_isr+0x8c/0x538

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20221127-mtk-svs-v2-0-145b07663ea8@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/mediatek/mtk-svs.c