]> git.ipfire.org Git - people/ms/linux.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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 24 Mar 2014 08:45:01 +0000 (09:45 +0100)
commite32578deab8a4d815dbb7211b47f099fb00b4bd5
tree339f2796a149c50adb5a01b64aa6eed189b62baa
parentfec89336c8ee13b65d2c982b81a8b6df48656497
can: flexcan: fix shutdown: first disable chip, then all interrupts

commit 5be93bdda64e85450598c6e97f79fb8f6acf30e0 upstream.

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.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/can/flexcan.c