]> 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)
commita306dc9d203e49a09edabda41459e12c2cb5dd7b
treeec4522c10a34495e6cc8f13e1ef1f62de89d1ce9
parentcd5da98bf81b68e5d2089c5d97615fc47efc5b61
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