Skip to content

Commit cfd162f

Browse files
MrVanJassiBrar
authored andcommitted
mailbox: imx: extend irq to an array
To i.MX93 S401 MU, there are two interrupts: rx full and tx empty. So extend irq to an array to prepare i.MX93 S401 MU support. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 241aba6 commit cfd162f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/mailbox/imx-mailbox.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct imx_mu_priv {
8080
struct imx_mu_con_priv con_priv[IMX_MU_CHANS];
8181
const struct imx_mu_dcfg *dcfg;
8282
struct clk *clk;
83-
int irq;
83+
int irq[IMX_MU_CHANS];
8484
bool suspend;
8585

8686
u32 xcr[4];
@@ -551,11 +551,11 @@ static int imx_mu_startup(struct mbox_chan *chan)
551551
if (!priv->dev->pm_domain)
552552
irq_flag |= IRQF_NO_SUSPEND;
553553

554-
ret = request_irq(priv->irq, imx_mu_isr, irq_flag,
554+
ret = request_irq(priv->irq[0], imx_mu_isr, irq_flag,
555555
cp->irq_desc, chan);
556556
if (ret) {
557557
dev_err(priv->dev,
558-
"Unable to acquire IRQ %d\n", priv->irq);
558+
"Unable to acquire IRQ %d\n", priv->irq[0]);
559559
return ret;
560560
}
561561

@@ -598,7 +598,7 @@ static void imx_mu_shutdown(struct mbox_chan *chan)
598598
break;
599599
}
600600

601-
free_irq(priv->irq, chan);
601+
free_irq(priv->irq[0], chan);
602602
pm_runtime_put_sync(priv->dev);
603603
}
604604

@@ -762,9 +762,9 @@ static int imx_mu_probe(struct platform_device *pdev)
762762
if (IS_ERR(priv->base))
763763
return PTR_ERR(priv->base);
764764

765-
priv->irq = platform_get_irq(pdev, 0);
766-
if (priv->irq < 0)
767-
return priv->irq;
765+
priv->irq[0] = platform_get_irq(pdev, 0);
766+
if (priv->irq[0] < 0)
767+
return priv->irq[0];
768768

769769
dcfg = of_device_get_match_data(dev);
770770
if (!dcfg)

0 commit comments

Comments
 (0)