]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf81a41765b4a1588f1d5c05fe211093c0fe663e1
treeec4522c10a34495e6cc8f13e1ef1f62de89d1ce9
parent9cd95f2a9c1a42df72dea7471b80df1d7611a51a
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