Skip to content
Unverified Commit b1e9c223 authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Mark Brown
Browse files

spi: mediatek: Enable irq before the spi registration

If the irq is enabled after the spi si registered, there can be a race
with the initialization of the devices on the spi bus.

Eg:
mtk-spi 1100a000.spi: spi-mem transfer timeout
spi-nor: probe of spi0.0 failed with error -110
Unable to handle kernel NULL pointer dereference at virtual address
0000000000000010
...
Call trace:
 mtk_spi_can_dma+0x0/0x2c

Fixes: c6f78746

 ("spi: mediatek: Enable irq when pdata is ready")
Reported-by: default avatarDaniel Golle <daniel@makrotopia.org>
Signed-off-by: default avatarRicardo Ribalda <ribalda@chromium.org>
Tested-by: default avatarDaniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/20221225-mtk-spi-fixes-v1-0-bb6c14c232f8@chromium.org
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ce9ef749
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment