This patch set enables support for the internal PLL in MCP251xFD. Tested on a RPi 4 and a MCP2518FD with an external 4 MHz oscillator. The first part has been tested with the PLL sanity check disabled. This is my first attempt at contributing to Linux, so let me know of any errors in format and/or style. Magnus Aagaard Sørensen (2): Preparation for support of internal PLL in mcp251xfd. Moves all calls which would alter the clock setup, apart from probe, into PM calls. Enable support for internal PLL in mcp251xfd. The PLL is enabled if the configured clock is less than or equal to 10 times the max clock frequency. .../net/can/spi/mcp251xfd/mcp251xfd-core.c | 174 +++++++++++++----- drivers/net/can/spi/mcp251xfd/mcp251xfd.h | 3 + 2 files changed, 126 insertions(+), 51 deletions(-) -- 2.20.1