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


Groups > linux.kernel > #1532785 > unrolled thread

Re: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks

Started byStephen Boyd <sboyd@codeaurora.org>
First post2016-11-29 22:20 +0100
Last post2016-12-03 06:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] clk: Register clkdev after setup of fixed-rate and  fixed-factor clocks Stephen Boyd <sboyd@codeaurora.org> - 2016-11-29 22:20 +0100
    Re: [PATCH] clk: Register clkdev after setup of fixed-rate and  fixed-factor clocks Xiaolong Zhang <xiaolong.zhang@spreadtrum.com> - 2016-12-03 06:50 +0100

#1532785 — Re: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks

FromStephen Boyd <sboyd@codeaurora.org>
Date2016-11-29 22:20 +0100
SubjectRe: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks
Message-ID<sIXYJ-5kl-9@gated-at.bofh.it>
On 11/24, Xiaolong Zhang wrote:
> On 三, 11月 23, 2016 at 04:38:33下午 -0800, Stephen Boyd wrote:
> 
> > We're really off track now though. Can you please point to some
> > code that needs this change? If we're using DT then we should be
> > able to use the of_clk_*() path to find the clk.
> >
> 
> Actually, the requirement is raised by our GPU driver. In the
> early stage of the GPU DT driver, the GPU driver use the
> clk_get(NULL, con_id) to get the clock instance for compatible
> with non-DT GPU driver. The new driver have used the of_clk_get()
> instead of the clk_get. And we reserved the modification in clock.
> 

Ok the non-DT version of the GPU driver should be modified to
call clk_get() and pass in the device. The con_id argument there
should be something specific to the GPU device, and not a global
name of a clock on the system. When the clkdev lookup is
populated on the non-DT board make sure to set the dev_id string
to match the device name of the GPU device.

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

[toc] | [next] | [standalone]


#1535338

FromXiaolong Zhang <xiaolong.zhang@spreadtrum.com>
Date2016-12-03 06:50 +0100
Message-ID<sKbmV-5vx-1@gated-at.bofh.it>
In reply to#1532785
On 二, 11月 29, 2016 at 01:10:54下午 -0800, Stephen Boyd wrote:
> On 11/24, Xiaolong Zhang wrote:
> > On 三, 11月 23, 2016 at 04:38:33下午 -0800, Stephen Boyd wrote:
> > 
> > > We're really off track now though. Can you please point to some
> > > code that needs this change? If we're using DT then we should be
> > > able to use the of_clk_*() path to find the clk.
> > >
> > 
> > Actually, the requirement is raised by our GPU driver. In the
> > early stage of the GPU DT driver, the GPU driver use the
> > clk_get(NULL, con_id) to get the clock instance for compatible
> > with non-DT GPU driver. The new driver have used the of_clk_get()
> > instead of the clk_get. And we reserved the modification in clock.
> > 
> 
> Ok the non-DT version of the GPU driver should be modified to
> call clk_get() and pass in the device. The con_id argument there
> should be something specific to the GPU device, and not a global
> name of a clock on the system. When the clkdev lookup is
> populated on the non-DT board make sure to set the dev_id string
> to match the device name of the GPU device.
>
Ok, Thanks sBoyd!
>
> -- 
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> a Linux Foundation Collaborative Project

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web