Skip to content

Commit c360816

Browse files
abdurrahman-nexthopbroonie
authored andcommitted
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>
1 parent b603500 commit c360816

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-xilinx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static int xilinx_spi_probe(struct platform_device *pdev)
471471
xspi->bytes_per_word = bits_per_word / 8;
472472
xspi->buffer_size = xilinx_spi_find_buffer_size(xspi);
473473

474-
xspi->irq = platform_get_irq(pdev, 0);
474+
xspi->irq = platform_get_irq_optional(pdev, 0);
475475
if (xspi->irq < 0 && xspi->irq != -ENXIO) {
476476
return xspi->irq;
477477
} else if (xspi->irq >= 0) {

0 commit comments

Comments
 (0)