Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

can: tcan4x5x: get rid of false clock errors

tcan4x5x devices only requires the clock "cclk", so call
devm_clk_get() directly. This is done to avoid
m_can_class_get_clocks() that checks for both hclk and cclk and
results in this warning message:

| tcan4x5x spi0.0: no clock found

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Link: https://patch.msgid.link/20241128-mcancclk-v1-1-a93aac64dbae@geanix.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Sean Nyekjaer and committed by
Marc Kleine-Budde
68d426da bddad4fa

+1 -1
+1 -1
drivers/net/can/m_can/tcan4x5x-core.c
··· 409 409 priv->power = NULL; 410 410 } 411 411 412 - m_can_class_get_clocks(mcan_class); 412 + mcan_class->cclk = devm_clk_get(mcan_class->dev, "cclk"); 413 413 if (IS_ERR(mcan_class->cclk)) { 414 414 dev_err(&spi->dev, "no CAN clock source defined\n"); 415 415 freq = TCAN4X5X_EXT_CLK_DEF;