summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorPeng Yang <pyangyyd@gmail.com>2026-06-08 17:58:49 +0800
committerMark Brown <broonie@kernel.org>2026-06-10 00:07:39 +0100
commit3c60184e39b57e5efe664fe8540cdbc1bc7ea899 (patch)
tree9f1e83fec35e132bd02065e5b1edaf4085b7fa93 /include/uapi
parent5ac5ec84734fd338867055d4d7b650f18a023cb0 (diff)
downloadlwn-3c60184e39b57e5efe664fe8540cdbc1bc7ea899.tar.gz
lwn-3c60184e39b57e5efe664fe8540cdbc1bc7ea899.zip
spi: dw: fix race between IRQ handler and error handler on SMP
On SMP systems, dw_spi_handle_err() can be called from the SPI core kthread while the IRQ handler is still accessing the FIFO on another CPU. Resetting the chip via dw_spi_reset_chip() during an active FIFO read/write causes a bus error. Fix this by calling disable_irq() before the chip reset, which masks the IRQ and waits for any in-flight handler to complete via synchronize_irq(). This ensures no handler is accessing the FIFO when the reset occurs. Signed-off-by: Peng Yang <pyangyyd@amazon.com> Suggested-by: Jonathan Chocron <jonnyc@amazon.com> Link: https://patch.msgid.link/20260608095849.3446-1-pyangyyd@amazon.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions