Message ID | 20181213070537.25095-1-qiangqing.zhang@nxp.com |
---|---|
Headers | show |
Series | can: flexcan: add PE clock source select support | expand |
Kindly Ping... Best Regards, Joakim Zhang > -----Original Message----- > From: Joakim Zhang > Sent: 2018年12月13日 15:08 > To: mkl@pengutronix.de; robh@kernel.org > Cc: linux-can@vger.kernel.org; devicetree@vger.kernel.org; > linux-kernel@vger.kernel.org; dl-linux-imx <linux-imx@nxp.com>; Joakim > Zhang <qiangqing.zhang@nxp.com> > Subject: [PATCH 0/2] can: flexcan: add PE clock source select support > > 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(-) > > -- > 2.17.1
Kindly Ping... Best Regards, Joakim Zhang > -----Original Message----- > From: Joakim Zhang > Sent: 2019年1月17日 14:28 > To: mkl@pengutronix.de; robh@kernel.org > Cc: linux-can@vger.kernel.org; devicetree@vger.kernel.org; > linux-kernel@vger.kernel.org; dl-linux-imx <linux-imx@nxp.com> > Subject: RE: [PATCH 0/2] can: flexcan: add PE clock source select support > > > Kindly Ping... > > Best Regards, > Joakim Zhang > > > -----Original Message----- > > From: Joakim Zhang > > Sent: 2018年12月13日 15:08 > > To: mkl@pengutronix.de; robh@kernel.org > > Cc: linux-can@vger.kernel.org; devicetree@vger.kernel.org; > > linux-kernel@vger.kernel.org; dl-linux-imx <linux-imx@nxp.com>; Joakim > > Zhang <qiangqing.zhang@nxp.com> > > Subject: [PATCH 0/2] can: flexcan: add PE clock source select support > > > > 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(-) > > > > -- > > 2.17.1
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. Tnx, Marc
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(®s->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