can: flexcan: fix shutdown: first disable chip, then all interrupts
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 19 Feb 2014 11:00:51 +0000 (12:00 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Mar 2014 11:40:52 +0000 (12:40 +0100)
commit5be93bdda64e85450598c6e97f79fb8f6acf30e0
treeec4522c10a34495e6cc8f13e1ef1f62de89d1ce9
parent635d61a3735e05c8da72740006670f819e5b6a5f
can: flexcan: fix shutdown: first disable chip, then all interrupts

When shutting down the CAN interface (ifconfig canX down) during high CAN bus
loads, the CAN core might hang and freeze the whole CPU.

This patch fixes the shutdown sequence by first disabling the CAN core then
disabling all interrupts.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c