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


Groups > linux.kernel > #1281059

Re: [RFC PATCH] clocksource: ti-32k: convert to platform device

From Grygorii Strashko <grygorii.strashko@ti.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] clocksource: ti-32k: convert to platform device
Date 2015-12-01 18:20 +0100
Message-ID <qAWKS-45N-13@gated-at.bofh.it> (permalink)
References (1 earlier) <qwYBz-2q0-3@gated-at.bofh.it> <qzxES-7w1-15@gated-at.bofh.it> <qAzuW-5YC-19@gated-at.bofh.it> <qAUJ5-2Pr-41@gated-at.bofh.it> <qAVF8-3r6-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/01/2015 06:07 PM, Tony Lindgren wrote:
> * Grygorii Strashko <grygorii.strashko@ti.com> [151201 07:09]:
>> On 11/30/2015 06:28 PM, Tony Lindgren wrote:
>>>
>>> We should be able to make this into an early_platform_device and just
>>> have it depend on the source clock muxes. See the omap initcall changes
>>> patches I just posted.
>>>
>>
>> Sry, may be I've missed smth, but how early_platform_device will help us
>> to get rid of platform code - We'd still need to power on manually
>> early_platform_device's from platform code :( through hwmod.
>
> Having minimal platform code early is not a problem. The problem is that
> our early code is not minimal.
>
> For the system timers, we should only initialize the mux clocks needed
> early to select between 32k and hf oscillator source. This needs to be done
> using the clock framework, but we don't need the other clocks initialized
> early.
>
> The system timers we're using should be in the alwon power domain, if they
> are not, then we should change the timers around so we're using only timers
> in the alwon domain for system timers. Typically at least gpt1 and 12 are
> always powered. That allows us to leave out the hwmod dependency for system
> timers.
>
> Or am I forgetting some other dependency with our system timers?

both counter32 and GP timer have to be enabled through sysc registers.
They are in "Force idle" state after reset.

>
>> The main reason why I've tried this is because clocksource will be really selected
>> only at fs_initcall time - and at that time we have no restriction for using platform
>> devices, Pm runtime APIs, etc. (exception/blocker is sched_clock :().
>
> Right. But it seems we can leave out quite a bit of the dependencies
> for system timers. We already have gptimer probe not touching the system
> timers later on and can use shared gptimer functions after the clock
> muxing is done.


-- 
regards,
-grygorii
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

Re: [RFC PATCH] clocksource: ti-32k: convert to platform device Tony Lindgren <tony@atomide.com> - 2015-11-30 17:30 +0100
  Re: [RFC PATCH] clocksource: ti-32k: convert to platform device Grygorii Strashko <grygorii.strashko@ti.com> - 2015-12-01 16:10 +0100
    Re: [RFC PATCH] clocksource: ti-32k: convert to platform device Tony Lindgren <tony@atomide.com> - 2015-12-01 17:10 +0100
      Re: [RFC PATCH] clocksource: ti-32k: convert to platform device Grygorii Strashko <grygorii.strashko@ti.com> - 2015-12-01 18:20 +0100
        Re: [RFC PATCH] clocksource: ti-32k: convert to platform device Tony Lindgren <tony@atomide.com> - 2015-12-01 18:30 +0100

csiph-web