]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35bfe50d0e839f8ec4c8807518ed81072e1943b6
treec7d2ca7e7d8a120ad3b3e424aa835a62ce7d18ce
parentb831a2ff970034d3973d71becd301baa3aa68ad0
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