diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2019-06-27 15:29:27 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2019-07-10 23:08:44 -0500 |
commit | 11108f4671bda6bf93bea5455210346a0ccbaa10 (patch) | |
tree | 0d47dbc3dac492f716286f167d75b851f310a68d /drivers/mailbox | |
parent | 9c1f2a5dc2948b9f1170d4202c84745f0b0ff0c9 (diff) | |
download | talos-op-linux-11108f4671bda6bf93bea5455210346a0ccbaa10.tar.gz talos-op-linux-11108f4671bda6bf93bea5455210346a0ccbaa10.zip |
mailbox: imx: Clear GIEn bit at shutdown
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>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r-- | drivers/mailbox/imx-mailbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 25be8bb5e371..9f74dee1a58c 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -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); } |