Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: rockchip: Use plain request_irq()

The Rockchip driver has since interrupt support was added used
request_threaded_irq() but not actually supplied a threaded handler,
handling everything in the primary handler. This is equivalent to just
using a plain request_irq(), and since aef30c8d569c (genirq: Warn about
using IRQF_ONESHOT without a threaded handler) the current behaviour has
triggered a WARN_ON(). Convert to use request_irq().

Reported-by: Aishwarya TCV <Aishwarya.TCV@arm.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260116-spi-rockchip-threaded-irq-v1-1-c45c3a5a38b1@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>

+2 -2
+2 -2
drivers/spi/spi-rockchip.c
··· 805 805 if (ret < 0) 806 806 goto err_put_ctlr; 807 807 808 - ret = devm_request_threaded_irq(&pdev->dev, ret, rockchip_spi_isr, NULL, 809 - IRQF_ONESHOT, dev_name(&pdev->dev), ctlr); 808 + ret = devm_request_irq(&pdev->dev, ret, rockchip_spi_isr, 0, 809 + dev_name(&pdev->dev), ctlr); 810 810 if (ret) 811 811 goto err_put_ctlr; 812 812