[PATCH 3/4] ASoC: atmel: mchp-spdifrx: Move IRQ request after runtime PM setup

From: phucduc . bui

Date: Thu Nov 19 2026 - 05:35:02 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Move devm_request_irq() after runtime PM setup to ensure the IRQ is
released before the runtime suspend action runs during cleanup.

Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/atmel/mchp-spdifrx.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c
index 25122f6ef3c9..41c65e835765 100644
--- a/sound/soc/atmel/mchp-spdifrx.c
+++ b/sound/soc/atmel/mchp-spdifrx.c
@@ -1113,16 +1113,11 @@ static int mchp_spdifrx_probe(struct platform_device *pdev)
if (IS_ERR(regmap))
return PTR_ERR(regmap);

- /* Request IRQ. */
+ /* Get IRQ. */
irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;

- err = devm_request_irq(&pdev->dev, irq, mchp_spdif_interrupt, 0,
- dev_name(&pdev->dev), dev);
- if (err)
- return err;
-
/* Get the peripheral clock */
dev->pclk = devm_clk_get(&pdev->dev, "pclk");
if (IS_ERR(dev->pclk))
@@ -1168,6 +1163,12 @@ static int mchp_spdifrx_probe(struct platform_device *pdev)
}
}

+ /* Request IRQ. */
+ err = devm_request_irq(&pdev->dev, irq, mchp_spdif_interrupt, 0,
+ dev_name(&pdev->dev), dev);
+ if (err)
+ return err;
+
dev->capture.addr = (dma_addr_t)mem->start + SPDIFRX_RHR;
dev->capture.maxburst = 1;

--
2.43.0