[PATCH v2 4/9] mailbox: imx: Use channel index instead of zero in imx_mu_specific_rx()

Sebastian Andrzej Siewior bigeasy at linutronix.de
Mon Jun 8 02:39:29 PDT 2026


On 2026-06-08 13:11:18 [+0800], Peng Fan wrote:
> >diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
> >index 1dda1437b87f6..d1de07cc0ed62 100644
> >--- a/drivers/mailbox/imx-mailbox.c
> >+++ b/drivers/mailbox/imx-mailbox.c
> >@@ -407,7 +407,7 @@ static int imx_mu_specific_rx(struct imx_mu_priv *priv, struct imx_mu_con_priv *
> > 		*data++ = imx_mu_read(priv, priv->dcfg->xRR + (i % num_rr) * 4);
> > 	}
> > 
> >-	imx_mu_xcr_set_act(priv, cp, IMX_MU_RCR, IMX_MU_xCR_RIEn(priv->dcfg->type, 0));
> >+	imx_mu_xcr_set_act(priv, cp, IMX_MU_RCR, IMX_MU_xCR_RIEn(priv->dcfg->type, cp->idx));
> > 	mbox_chan_received_data(cp->chan, (void *)priv->msg);
> 
> For specific rx channel, whether it is i.MX8 SCU or i.MX ELE, actually there is
> only 1 channel as of now, but it seems better to use cp->idx in case more
> channels in future.

Thank you for clarifying.

Sebastian



More information about the linux-arm-kernel mailing list