]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: spi-mt65xx: Use threaded interrupt for non-SPIMEM transfer
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 26 Jul 2024 11:47:21 +0000 (13:47 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:23:25 +0000 (01:23 +0100)
commit5972eb05ca322bb1efe44d32808bc7a331e7aee4
tree682083d5a15c18376d58531f2056a973d3b746c7
parentdc58d15ae7f247f642ea4751a276914eefa31865
spi: spi-mt65xx: Use threaded interrupt for non-SPIMEM transfer

In order to avoid blocking for an excessive amount of time, eventually
impacting on system responsiveness, interrupt handlers should finish
executing in as little time as possible.

Use threaded interrupt and move the SPI transfer handling (both
CPU and DMA) for the non-spimem case to an interrupt thread instead.

For SPI-MEM (IPM) controllers, handling is kept in the blocking
interrupt as it simply consists in signalling completion.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20240726114721.142196-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c