Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1671418

RE: [PATCH 9/9] clk: imx: add imx7ulp clk driver

From "A.s. Dong" <aisheng.dong@nxp.com>
Newsgroups linux.kernel
Subject RE: [PATCH 9/9] clk: imx: add imx7ulp clk driver
Date 2017-06-21 09:20 +0200
Message-ID <tUI5I-31b-7@gated-at.bofh.it> (permalink)
References <tRNOi-4yK-11@gated-at.bofh.it> <tUgM9-2p5-7@gated-at.bofh.it> <tUgM9-2p5-5@gated-at.bofh.it> <tUnXl-6TG-63@gated-at.bofh.it> <tUyg1-4YJ-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> -----Original Message-----
> From: Stephen Boyd [mailto:sboyd@codeaurora.org]
> Sent: Wednesday, June 21, 2017 4:42 AM
> To: Dong Aisheng
> Cc: A.s. Dong; linux-clk@vger.kernel.org; linux-kernel@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org; mturquette@baylibre.com;
> shawnguo@kernel.org; Anson Huang; Jacky Bai
> Subject: Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver
> 
> On 06/20, Dong Aisheng wrote:
> > On Mon, Jun 19, 2017 at 07:01:19PM -0700, Stephen Boyd wrote:
> > >
> > > Any reason why it can't be a platform driver? If not, please add
> > > some comment explaining why.
> > >
> >
> > Timer is using it at early stage. GIC seems not although standard
> > binding claim possible clock requirement.
> > Others still not sure.
> >
> > What your suggestion?
> > Convert timer to platform driver and make clock as platform driver as
> well?
> >
> 
> The timer can't be a platform driver because it would be too late. The
> clock driver could register whatever clks are required for the timer/GIC
> in a CLK_OF_DECLARE_DRIVER hook, and then leave the rest to a platform
> driver. This way we get some of the device driver framework in this code.
> 

Okay, I could try it. Thanks.

One thing is that TPM clock has a lot parents and parents having parents,
as well as PIT timer. So I may need enable more than half clocks in
CLK_OF_DECLARE_DRIVER hook.

BTW, What's benefit to convert into two parts of probe?
I'm not quite if I already get it all, can you help clarify it?

Regards
Dong Aisheng

> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux
> Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver Stephen Boyd <sboyd@codeaurora.org> - 2017-06-20 04:10 +0200
  Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver Dong Aisheng <dongas86@gmail.com> - 2017-06-20 11:50 +0200
    Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver Stephen Boyd <sboyd@codeaurora.org> - 2017-06-20 22:50 +0200
      RE: [PATCH 9/9] clk: imx: add imx7ulp clk driver "A.s. Dong" <aisheng.dong@nxp.com> - 2017-06-21 09:20 +0200
        Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver Stephen Boyd <sboyd@codeaurora.org> - 2017-07-01 02:40 +0200
          RE: [PATCH 9/9] clk: imx: add imx7ulp clk driver "A.s. Dong" <aisheng.dong@nxp.com> - 2017-07-03 05:20 +0200

csiph-web