Skip to content

Commit

Permalink
mailbox: imx: Clear GIEn bit at shutdown
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Oleksij Rempel <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
  • Loading branch information
dbaluta authored and JassiBrar committed Jul 11, 2019
1 parent 9c1f2a5 commit 11108f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mailbox/imx-mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 11108f4

Please sign in to comment.