can: flexcan: enable interrupts atomically at the end of flexcan_chip_start()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 Aug 2015 12:24:48 +0000 (14:24 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Sep 2015 06:38:23 +0000 (08:38 +0200)
commit6fa7da249269a6146ce456c43098901c81c8afdf
treef500d4752ee15181817b0ebf8eb13ca691415e11
parent1ba763d1d4bda61bfb9b8e5154e6cf39a3e2d0e6
can: flexcan: enable interrupts atomically at the end of flexcan_chip_start()

This patch defers the writing of the interrupts bits of the CTRL register order
to enables all interrupts atomically at the the of the flexcan_chip_start()
function.

Suggested-by: Torsten Lang <torsten.lang@uweschneider.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c