OSDN Git Service

mailbox: imx: Clear the right interrupts at shutdown
authorDaniel Baluta <daniel.baluta@nxp.com>
Wed, 9 Oct 2019 08:07:19 +0000 (16:07 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sun, 1 Dec 2019 05:09:10 +0000 (23:09 -0600)
commit5f0af07e89199ac51cdd4f25bc303bdc703f4e9c
tree138a3c0c0f5700862b2f43b57f6cd780d554f2f1
parentbf159d151a0b844be28882f39e316b5800acaa2b
mailbox: imx: Clear the right interrupts at shutdown

Make sure to only clear enabled interrupts keeping count
of the connection type.

Suggested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c