diff options
| author | Abdurrahman Hussain <abdurrahman@nexthop.ai> | 2026-01-19 07:06:23 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-01-19 23:21:51 +0000 |
| commit | c3608162a95a259c669cf9fdccf900782fa8d902 (patch) | |
| tree | 85de19e28221354f35e9eecaad62e8e7ca0386cd | |
| parent | b603500de20fbe15ee54580481c1df4212a4ec44 (diff) | |
spi: xilinx: make irq optional
Both the hardware and driver already support polling mode. By removing
the mandatory IRQ requirement during probe, the driver can now fall
back to polling when an interrupt is unavailable, ensuring
compatibility with a wider range of systems.
Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
Link: https://patch.msgid.link/20260119-spi-xilinx-v3-2-4566c33bac0d@nexthop.ai
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | drivers/spi/spi-xilinx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index c86dc56f38b4..4aa67fc61cb6 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c @@ -471,7 +471,7 @@ static int xilinx_spi_probe(struct platform_device *pdev) xspi->bytes_per_word = bits_per_word / 8; xspi->buffer_size = xilinx_spi_find_buffer_size(xspi); - xspi->irq = platform_get_irq(pdev, 0); + xspi->irq = platform_get_irq_optional(pdev, 0); if (xspi->irq < 0 && xspi->irq != -ENXIO) { return xspi->irq; } else if (xspi->irq >= 0) { |
