ASoC: fsl_sai: add IRQF_SHARED
authorMichael Walle <michael@walle.cc>
Thu, 28 Nov 2019 22:38:02 +0000 (23:38 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2019 18:34:04 +0000 (18:34 +0000)
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20191128223802.18228-1-michael@walle.cc
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c

index b517e4b..8c3ea73 100644 (file)
@@ -958,7 +958,8 @@ static int fsl_sai_probe(struct platform_device *pdev)
        if (irq < 0)
                return irq;
 
-       ret = devm_request_irq(&pdev->dev, irq, fsl_sai_isr, 0, np->name, sai);
+       ret = devm_request_irq(&pdev->dev, irq, fsl_sai_isr, IRQF_SHARED,
+                              np->name, sai);
        if (ret) {
                dev_err(&pdev->dev, "failed to claim irq %u\n", irq);
                return ret;