]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: Disable error interrupt when bus error reporting is disabled
authorAlexander Stein <alexander.stein@systec-electronic.com>
Tue, 12 Aug 2014 08:47:21 +0000 (10:47 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 21 Aug 2014 08:49:59 +0000 (10:49 +0200)
commit1611bac0e57a51fd8d46384aabb475913ab8c09f
treed31283e9f29a68e5975e611a16addc88b70d4cd3
parent6fcf6c93988a8feb5b8a0def31a627325c377a48
can: flexcan: Disable error interrupt when bus error reporting is disabled

In case we don't have FLEXCAN_HAS_BROKEN_ERR_STATE and the user set
CAN_CTRLMODE_BERR_REPORTING once it can not be unset again until reboot.
So in case neither hardware nor user wants the error interrupt disable
the bit.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c