Ricardo Ribalda b1e9c22373
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: c6f7874687f7 ("spi: mediatek: Enable irq when pdata is ready")
Reported-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/20221225-mtk-spi-fixes-v1-0-bb6c14c232f8@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-12-27 13:42:40 +00:00
..
2022-11-04 12:25:03 +00:00
2022-01-04 14:59:40 +00:00
2022-11-25 19:16:05 +00:00
2022-08-02 10:55:04 -07:00
2021-12-23 13:38:38 +00:00
2022-12-13 12:54:31 -08:00
2022-12-13 12:54:31 -08:00
2022-12-13 12:54:31 -08:00
2021-08-26 12:09:38 +01:00
2022-03-15 12:03:58 +00:00
2022-11-18 11:57:10 +00:00