]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mailbox: mtk-cmdq: Do not request irq until we are ready
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 30 Nov 2022 12:58:22 +0000 (13:58 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2022 02:40:31 +0000 (20:40 -0600)
commit16edcfef77147748c43c9c58ce18f59c61d1c357
tree97a89d1f6f6401a65e3fc5c0e973b0638bac9bac
parenta6792a0cdef0b1c2d77920246283a72537e60e94
mailbox: mtk-cmdq: Do not request irq until we are ready

If the system comes from kexec() the peripheral might trigger an IRQ
befoe we are ready for it. Triggering a crash due to an access to
invalid memory.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c