mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
ASoC: rockchip: rockchip_sai: Propagate -EPROBE_DEFER from IRQ lookup
Return -EPROBE_DEFER from platform_get_irq_optional() so the driver is re-probed when the interrupt resource becomes available instead of continuing probe without an IRQ. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260806052136.21034-12-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
b300f1313b
commit
c97bdbf862
|
|
@ -1428,6 +1428,8 @@ static int rockchip_sai_probe(struct platform_device *pdev)
|
|||
"Failed to initialize regmap\n");
|
||||
|
||||
irq = platform_get_irq_optional(pdev, 0);
|
||||
if (irq == -EPROBE_DEFER)
|
||||
return irq;
|
||||
if (irq > 0) {
|
||||
ret = devm_request_irq(&pdev->dev, irq, rockchip_sai_isr,
|
||||
IRQF_SHARED, node->name, sai);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user