diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2022-12-25 11:37:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-27 02:23:21 +0300 |
commit | b24cded8c065d7cef8690b2c7b82b828cce57708 (patch) | |
tree | da5b5fc2875114dae27b9976ba8f629015ea7959 /drivers/spi/spi-cavium.c | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) | |
download | linux-b24cded8c065d7cef8690b2c7b82b828cce57708.tar.xz |
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>
Diffstat (limited to 'drivers/spi/spi-cavium.c')
0 files changed, 0 insertions, 0 deletions