Thread (4 messages) flat view 4 messages, 3 authors, 2012-08-06

Re: [PATCH v2 2/4] PM / OPP: Initialize OPP table from device tree

From: Shawn Guo <hidden>
Date: 2012-08-06 03:19:19
Also in: linux-arm-kernel

On Sun, Aug 05, 2012 at 09:50:32PM -0500, Rob Herring wrote:
quoted
+Properties:
+- operating-points: An array of 3-tuples items, and each item consists
3 tuples?
It's the case of v1, and I forgot updating it.  Thanks for spotting it.
quoted
+  of frequency and voltage like <freq-kHz vol-uV>.
+	freq: clock frequency in kHz
+	vol: voltage in microvolt
Although maybe 3 fields would be good for a flags field? I'm concerned
it's a pretty generic name and not very future proof. What about
transition times? Not sure how you would represent that as it probably
depends on which points you are changing between rather than a property
of the opp.
This is a binding for OPP, which does not define transition times.

As for cpufreq, we only need to represent a possible maximum transition
latency.  The driver will ask regulator subsystem for voltage latency,
while the clock latency is defined in DT. 
I think this whole function can be written more concisely. Just iterate
over the property and avoid the intermediate array allocation.
I'm not sure about that, since directly iterating over the property
means we have to take care of all these sanity checks done in API
of_property_read_u32_array().

-- 
Regards,
Shawn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help