ASoC: dwc: Propagate -EPROBE_DEFER from IRQ lookup
PATCH 1/1 ASoC: dwc: Propagate -EPROBE_DEFER from IRQ lookup
From: bui duc phuc <[email protected]>
platform_get_irq_optional() never returns 0. It returns a positive IRQ number on success or a negative error code on failure.
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.
--- sound/soc/dwc/dwc-i2s.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/soc/dwc/dwc-i2s.c +3 -1
@@ -955,7 +955,9 @@ static int dw_i2s_probe(struct platform_device *pdev) } irq =platform_get_irq_optional (pdev,0 ); -if (irq >=0 ) { +if (irq == -EPROBE_DEFER ) +return irq; +if (irq >0 ) { ret =devm_request_irq (&pdev->dev, irq, i2s_irq_handler,0 , pdev->name, dev);if (ret <0 ) {
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 1 line · On Thu, 06 Aug 2026 13:10:45 +0700, [email protected] wrote:
ASoC: dwc: Propagate -EPROBE_DEFER from IRQ lookup
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.3
Thanks!
[1/1] ASoC: dwc: Propagate -EPROBE_DEFER from IRQ lookup
https://git.kernel.org/broonie/sound/c/564db8b8da8d
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark