Skip to content

Commit 39d7d61

Browse files
MrVanJassi Brar
authored andcommitted
mailbox: imx: use device name in interrupt name
There are several MUs for different usage, SCMI MU, ELE MU, RemotePROC MU. Using "imx_mu_chan" in interrupt name would be hard to identify which MU triggers interrupt, so use device name to make it easy to know which MU triggers which interrupt. Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 0e4ed48 commit 39d7d61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mailbox/imx-mailbox.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define IMX_MU_SCU_CHANS 6
3131
/* TX0/RX0 */
3232
#define IMX_MU_S4_CHANS 2
33-
#define IMX_MU_CHAN_NAME_SIZE 20
33+
#define IMX_MU_CHAN_NAME_SIZE 32
3434

3535
#define IMX_MU_V2_PAR_OFF 0x4
3636
#define IMX_MU_V2_TR_MASK GENMASK(7, 0)
@@ -782,7 +782,7 @@ static int imx_mu_init_generic(struct imx_mu_priv *priv)
782782
cp->chan = &priv->mbox_chans[i];
783783
priv->mbox_chans[i].con_priv = cp;
784784
snprintf(cp->irq_desc, sizeof(cp->irq_desc),
785-
"imx_mu_chan[%i-%i]", cp->type, cp->idx);
785+
"%s[%i-%i]", dev_name(priv->dev), cp->type, cp->idx);
786786
}
787787

788788
priv->mbox.num_chans = IMX_MU_CHANS;
@@ -819,7 +819,7 @@ static int imx_mu_init_specific(struct imx_mu_priv *priv)
819819
cp->chan = &priv->mbox_chans[i];
820820
priv->mbox_chans[i].con_priv = cp;
821821
snprintf(cp->irq_desc, sizeof(cp->irq_desc),
822-
"imx_mu_chan[%i-%i]", cp->type, cp->idx);
822+
"%s[%i-%i]", dev_name(priv->dev), cp->type, cp->idx);
823823
}
824824

825825
priv->mbox.num_chans = num_chans;

0 commit comments

Comments
 (0)