soc: mediatek: mtk-svs: Enable the IRQ later
authorRicardo Ribalda <ribalda@chromium.org>
Tue, 20 Dec 2022 21:35:59 +0000 (22:35 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 25 Jan 2023 19:10:09 +0000 (20:10 +0100)
commitb74952aba6c3f47e7f2c5165abaeefa44c377140
treec7ed5ec051467d7c1ddc7a89ee658a273a1821e1
parent4ea6aa8902fc62bd3576eaef248067cc106f8a41
soc: mediatek: mtk-svs: Enable the IRQ later

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>
drivers/soc/mediatek/mtk-svs.c