]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: xilinx: let transfers timeout in case of no IRQ
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Wed, 10 Jun 2026 22:28:43 +0000 (22:28 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 11 Jun 2026 13:48:17 +0000 (14:48 +0100)
commit0f95264f49ace739d411fd9149e2b3545d741d06
tree164f64b47b602164ec45fae44d597cbfc5475b70
parent3da90b29241d5a08e689e87c2c76712a63acfb47
spi: xilinx: let transfers timeout in case of no IRQ

In case of failed HW the driver may not see an interrupt and will stuck
in waiting forever. We can avoid such situation by timing out of
transfers if the interrupt is not seen in a reasonable time.

This problem can be found on unload of ptp_ocp driver for TimeCard which
uses Xilinx SPI AXI and SPI-NOR flash memory. During tear-down process
spi-nor drivers send soft reset command which is not triggering an
interrupt stalling the unload process completely.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260610222843.782337-1-vadim.fedorenko@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-xilinx.c