can: flexcan: flexcan_open(): completely initialize controller before requesting IRQ
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 19 Nov 2020 10:09:16 +0000 (11:09 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 20 Nov 2020 11:06:46 +0000 (12:06 +0100)
commit648a34b1d57d65d01784ca3659558794d5c00ae1
treec7d2ca7e7d8a120ad3b3e424aa835a62ce7d18ce
parentf3f2a5466578e297f5eeff940c9eb98c4ea5f0b3
can: flexcan: flexcan_open(): completely initialize controller before requesting IRQ

This patch changes the order in which the flexcan controller is brought up
during flexcan_open(). It makes sure that the chip is completely initialized
before the IRQs are requested and finally enabled.

Link: https://lore.kernel.org/r/20201119100917.3013281-5-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c