Commit 39d7d617 authored by Peng Fan's avatar Peng Fan Committed by Jassi Brar

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: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
parent 0e4ed482
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define IMX_MU_SCU_CHANS 6 #define IMX_MU_SCU_CHANS 6
/* TX0/RX0 */ /* TX0/RX0 */
#define IMX_MU_S4_CHANS 2 #define IMX_MU_S4_CHANS 2
#define IMX_MU_CHAN_NAME_SIZE 20 #define IMX_MU_CHAN_NAME_SIZE 32
#define IMX_MU_V2_PAR_OFF 0x4 #define IMX_MU_V2_PAR_OFF 0x4
#define IMX_MU_V2_TR_MASK GENMASK(7, 0) #define IMX_MU_V2_TR_MASK GENMASK(7, 0)
...@@ -782,7 +782,7 @@ static int imx_mu_init_generic(struct imx_mu_priv *priv) ...@@ -782,7 +782,7 @@ static int imx_mu_init_generic(struct imx_mu_priv *priv)
cp->chan = &priv->mbox_chans[i]; cp->chan = &priv->mbox_chans[i];
priv->mbox_chans[i].con_priv = cp; priv->mbox_chans[i].con_priv = cp;
snprintf(cp->irq_desc, sizeof(cp->irq_desc), snprintf(cp->irq_desc, sizeof(cp->irq_desc),
"imx_mu_chan[%i-%i]", cp->type, cp->idx); "%s[%i-%i]", dev_name(priv->dev), cp->type, cp->idx);
} }
priv->mbox.num_chans = IMX_MU_CHANS; priv->mbox.num_chans = IMX_MU_CHANS;
...@@ -819,7 +819,7 @@ static int imx_mu_init_specific(struct imx_mu_priv *priv) ...@@ -819,7 +819,7 @@ static int imx_mu_init_specific(struct imx_mu_priv *priv)
cp->chan = &priv->mbox_chans[i]; cp->chan = &priv->mbox_chans[i];
priv->mbox_chans[i].con_priv = cp; priv->mbox_chans[i].con_priv = cp;
snprintf(cp->irq_desc, sizeof(cp->irq_desc), snprintf(cp->irq_desc, sizeof(cp->irq_desc),
"imx_mu_chan[%i-%i]", cp->type, cp->idx); "%s[%i-%i]", dev_name(priv->dev), cp->type, cp->idx);
} }
priv->mbox.num_chans = num_chans; priv->mbox.num_chans = num_chans;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment