]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: mt65xx: Use IRQF_ONESHOT with threaded IRQ
authorFei Shao <fshao@chromium.org>
Wed, 17 Dec 2025 10:10:47 +0000 (18:10 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 17 Dec 2025 12:01:17 +0000 (12:01 +0000)
commit8c04b77f87e6e321ae6acd28ce1de5553916153f
treeaa206570d14636d21fe9f01f080a8c6443f637da
parent1d24636a9c87c32ec626a56593c98544e6c49fef
spi: mt65xx: Use IRQF_ONESHOT with threaded IRQ

This driver is migrated to use threaded IRQ since commit 5972eb05ca32
("spi: spi-mt65xx: Use threaded interrupt for non-SPIMEM transfer"), and
we almost always want to disable the interrupt line to avoid excess
interrupts while the threaded handler is processing SPI transfer.
Use IRQF_ONESHOT for that purpose.

In practice, we see MediaTek devices show SPI transfer timeout errors
when communicating with ChromeOS EC in certain scenarios, and with
IRQF_ONESHOT, the issue goes away.

Signed-off-by: Fei Shao <fshao@chromium.org>
Link: https://patch.msgid.link/20251217101131.1975131-1-fshao@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c