ARM timer clock api support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest posting 2/20 of 7 patches 0 repliesNew
- v3 posting 1/20 of 7 patches 0 repliesSuperseded
Patches in v3 posting 2/2 No applies recorded yet
None of the 7 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/7] ARM timer clock api support
Quoted 32 lines · Rob Herring
Russell,
Quoted 8 lines · Russell King - ARM Linux
Quoted 4 lines · Rob Herring
From: Rob Herring<[email protected]>
This patch series converts ARM sp804 timer and
smp_twdtimer to use the clock api.This is what I came up with - I've still not sorted these patches out, the second is a superset of the first.
Any comments on the
smp_twdpatch? Colin plans to base his cpufreq patches on it.Review
Quoted 13 lines
(quoted diff) +13
-0+ clk = clk_get_sys(name, NULL); + if (IS_ERR(clk)) { + pr_err("sp804: %s clock not found, defaulting to 1MHz: %d\n", + name, ERR_PTR(clk)); + } else { + int err = clk_enable(clk); + if (err != 0) { + pr_err("sp804: %s clock failed to enable: %d\n", + name, err); + clk_put(clk); + } else { + rate = clk_get_rate(clk); + }You previously said this should fully move to using the clock api. Presumably, that meant no default freq of 1MHz.
Quoted 2 lines
Also, my patch allows for clksrc and clkevent timers to have different clocks.
So will mine. Note that 'name' is passed in, which is the clocksource name, and is also used for clk_sys_get(). The same thing will happen with clockevents too.
Quoted 3 lines
Currently, no h/w needs that, but it could happen. Even if they are the same clk, you are introducing a requirement on the calling order of
sp804_clocksource_initandsp804_clockevents_init.
No I'm not, and I've no idea where you got that idea from. You'll notice that nothing to do with the clk is stored in a global variable.