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)
commit06db5dbc8ebfd3c9750349875d236cb51164c414
tree51832e19618f92172b8fd047140d0beac9c79bd7
parent197656de8d1e119f594dd1fe1b2d54fd2ae2add9
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