]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mailbox: imx: Clear GIEn bit at shutdown
authorDaniel Baluta <daniel.baluta@nxp.com>
Thu, 27 Jun 2019 12:29:27 +0000 (15:29 +0300)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 11 Jul 2019 04:08:44 +0000 (23:08 -0500)
GIEn is enabled at startup for RX doorbell mailboxes so
we need to clear the bit at shutdown in order to avoid
leaving the interrupt line enabled.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c

index 25be8bb5e371d305d1db3c35634c643eb46e3289..9f74dee1a58c71aa2749f1e1d81f6110d751c366 100644 (file)
@@ -217,8 +217,8 @@ static void imx_mu_shutdown(struct mbox_chan *chan)
        if (cp->type == IMX_MU_TYPE_TXDB)
                tasklet_kill(&cp->txdb_tasklet);
 
-       imx_mu_xcr_rmw(priv, 0,
-                  IMX_MU_xCR_TIEn(cp->idx) | IMX_MU_xCR_RIEn(cp->idx));
+       imx_mu_xcr_rmw(priv, 0, IMX_MU_xCR_TIEn(cp->idx) |
+                      IMX_MU_xCR_RIEn(cp->idx) | IMX_MU_xCR_GIEn(cp->idx));
 
        free_irq(priv->irq, chan);
 }