]> 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)
commit01e983c0c443c2b46af23c2d9f2346f9950cfa38
treec7d2ca7e7d8a120ad3b3e424aa835a62ce7d18ce
parent8a7ed3a07d17446c01bc724fab8feebd64f3b8fe
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