]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_chip_clock_init(): prepare for PLL support, wait for OSC...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 19 Oct 2020 07:59:28 +0000 (09:59 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Feb 2022 07:46:59 +0000 (08:46 +0100)
commit838d0826f2585cfb45d637ad85ce62aaedba3f34
tree0b396a0cd7d2ee2cf7ff35fa17f7b587a9e7f265
parent677bd46e99be69ca9223ff7b2a3521eb4e993e03
can: mcp251xfd: mcp251xfd_chip_clock_init(): prepare for PLL support, wait for OSC ready

This patch prepares the mcp251xfd_chip_clock_init() function for PLL
support.

If the PLL is needed is must be switched on after chip reset. This
should be done in the mcp251xfd_chip_clock_init() function. Prepare
this function to wait for the OSC and PLL to be ready.

Link: https://lore.kernel.org/all/20220207131047.282110-14-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c