]> git.baikalelectronics.ru Git - kernel.git/commit
can: rcar_can: support all input clocks
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 31 Jul 2014 21:23:32 +0000 (01:23 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 17 Aug 2014 23:03:41 +0000 (01:03 +0200)
commitf3790b5df561da76ad1bc0b8f9e25216f685fa31
treeef77994935b959b00939137ba1f58a3d68c23878
parent60471552e2d6216b3d3f3827f96ef46f6e1bfbce
can: rcar_can: support all input clocks

When writing the driver, I didn't give enough attention to the possible sources
of the CAN clock: although the value of the CLKR register was specified by the
platform data, the driver only handled one case, that is CAN clock being
sourced from the clkp1 clock, the same that clocks the whole CAN module. In
order to fix that overlook, we'll have to handle the CAN clock separately from
the peripheral clock (however, clkp1 will be specified for a CAN device only
once)...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar_can.c