]> git.baikalelectronics.ru Git - kernel.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)
commit3e922adfe494311699af55484a407369b5b4d928
tree53f9b9241b33d32b3833cc28160328d0a917243d
parentefe715ba67ddf7b2e0e835b586b98b4e82da25f1
soc: mediatek: mtk-svs: Enable the IRQ later

[ Upstream commit edf1e5ab6afe1608af3f1be590ce4b60df84cef5 ]

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