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)
commitbc03a54139baafcd8fe89ad115411c2c9c8a4905
treed31283e9f29a68e5975e611a16addc88b70d4cd3
parent37b75a3aa8ec7031df75219fe2f8e5e9b7be398f
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