]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:32 +0000 (16:35 +0100)
commit6fcfcf792ce8a46c95317ea0099aff5290dda9a6
treef9f217b9d8ecf7bfabcca32c17e046ba81bdfb79
parent6db8e186c977763542f1c813011bdcad691a73b8
spi: mt65xx: Use IRQF_ONESHOT with threaded IRQ

[ Upstream commit 8c04b77f87e6e321ae6acd28ce1de5553916153f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-mt65xx.c