]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_chip_wait_for_osc_ready(): prepare for PLL support
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 22 Oct 2020 21:13:42 +0000 (23:13 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Feb 2022 07:46:58 +0000 (08:46 +0100)
commit9992978bd7c05d28fc9914b7cdae2531bd2faa81
tree51832e19618f92172b8fd047140d0beac9c79bd7
parent1fcfc211821fec5b1519992d806f4007b0c5c858
can: mcp251xfd: mcp251xfd_chip_wait_for_osc_ready(): prepare for PLL support

The function mcp251xfd_chip_wait_for_osc_ready() polls the Oscillator
Control Register for the oscillator to get ready. By passing the
appropriate parameters (osc_reference and osc_mask) it can also poll
for PLL ready.

This patch adjusts the error message if the Oscillator and/or PLL fail
to get ready.

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