lkml.org 
[lkml]   [2019]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/2] can: flexcan: add PE clock source select support
From
Date
On 2/27/19 9:46 AM, Marc Kleine-Budde wrote:
> On 12/13/18 8:07 AM, Joakim Zhang wrote:
>> The patch set intends to add support for PE clock source select. The
>> FlexCAN controller can parse "fsl,clk-source" property from device tree
>> to select clock source.
>>
>> Dong Aisheng (2):
>> Documentation: can: flexcan: add PE clock source property to device
>> tree
>> can: flexcan: add support for PE clock source select
>>
>> .../bindings/net/can/fsl-flexcan.txt | 8 ++++++++
>> drivers/net/can/flexcan.c | 18 ++++++++++++++----
>> 2 files changed, 22 insertions(+), 4 deletions(-)
>
> Added to linux-can-next.

With one change:

> @@ -1369,7 +1371,10 @@ static int register_flexcandev(struct net_device *dev)
> goto out_clks_disable;
>
> reg = priv->read(&regs->ctrl);
> - reg |= FLEXCAN_CTRL_CLK_SRC;
> + if (priv->clk_src)
> + reg |= FLEXCAN_CTRL_CLK_SRC;
> + else
> + reg &= ~FLEXCAN_CTRL_CLK_SRC;

...the FLEXCAN_CTRL_CLK_SRC bit is cleared now.

Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-02-27 12:00    [W:0.089 / U:25.260 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site