ARM: EXYNOS4: Support generic Power domain framework for EXYNOS4210
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] ARM: EXYNOS4: Support generic Power domain framework for EXYNOS4210
Quoted 11 lines · Russell King - ARM Linux
Quoted 9 lines · Rafael J. Wysocki
Quoted 4 lines · Kukjin Kim
Hmm... Even though each driver cannot know the given situation, the driver can know each own clock should be alive or not. I think, if clock gating (enable, disable clock) is required, it should be handled in each driver. In addition, the clock and power are not always one-on-one match.
If the driver is to be portable and there's no guarantee that the clocks configuration on all systems it's supposed to be working with will always be the same, the driver shouldn't handle clocks directly.
Quoted 5 lines
How do these misconceptions start?
The clock API. Drivers are supposed to get a clock (source) when they initialize. Drivers then enable and disable the clock as they _themselves_ require the use of that clock.
OK
Now think of a driver that should handle the same device on both ARM and x86-based SoCs. Is the clock API available on x86?
Quoted 7 lines
The clock enable is counted such that if there is at least one user of the clock, it will be enabled. It is not a forced 'off' when disable is called - the number of enable calls must be balanced by the same number of disable calls for the clock itself to be disabled.
Drivers are _expected_ to do this themselves. Or the runtime PM stuff if that's what they're doing.
That I can agree with.
Thanks,
Rafael