lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 4 Nov 2015 21:18:41 -0600
From:	Rob Herring <robh@...nel.org>
To:	Viresh Kumar <viresh.kumar@...aro.org>
Cc:	Rafael Wysocki <rjw@...ysocki.net>, robh+dt@...nel.org,
	sboyd@...eaurora.org, lee.jones@...aro.org,
	linaro-kernel@...ts.linaro.org, linux-pm@...r.kernel.org,
	mark.rutland@....com, pawel.moll@....com,
	ijc+devicetree@...lion.org.uk, galak@...eaurora.org, nm@...com,
	devicetree@...r.kernel.org, b.zolnierkie@...sung.com,
	m.szyprowski@...sung.com, open list <linux-kernel@...r.kernel.org>,
	"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>
Subject: Re: [PATCH V2 4/5] PM / OPP: Rename OPP nodes as opp@<opp-hz>

On Thu, Nov 05, 2015 at 07:11:55AM +0530, Viresh Kumar wrote:
> It would be better to name OPP nodes as opp@<opp-hz> as that will ensure
> that multiple DT nodes don't contain the same frequency. Of course we
> expect the writer to name the node with its opp-hz frequency and not any
> other frequency.
> 
> And that will let the compile error out if multiple nodes are using the
> same opp-hz frequency.
> 
> Suggested-by: Stephen Boyd <sboyd@...eaurora.org>
> Reviewed-by: Stephen Boyd <sboyd@...eaurora.org>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>

Acked-by: Rob Herring <robh@...nel.org>

> ---
>  Documentation/devicetree/bindings/opp/opp.txt | 38 +++++++++++++--------------
>  1 file changed, 19 insertions(+), 19 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt
> index 30c4bb3718bc..10ef08dc1b4c 100644
> --- a/Documentation/devicetree/bindings/opp/opp.txt
> +++ b/Documentation/devicetree/bindings/opp/opp.txt
> @@ -183,20 +183,20 @@ Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together.
>  		compatible = "operating-points-v2";
>  		opp-shared;
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt = <970000 975000 985000>;
>  			opp-microamp = <70000>;
>  			clock-latency-ns = <300000>;
>  			opp-suspend;
>  		};
> -		opp01 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1100000000>;
>  			opp-microvolt = <980000 1000000 1010000>;
>  			opp-microamp = <80000>;
>  			clock-latency-ns = <310000>;
>  		};
> -		opp02 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1200000000>;
>  			opp-microvolt = <1025000>;
>  			clock-latency-ns = <290000>;
> @@ -262,20 +262,20 @@ independently.
>  		 * independently.
>  		 */
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt = <970000 975000 985000>;
>  			opp-microamp = <70000>;
>  			clock-latency-ns = <300000>;
>  			opp-suspend;
>  		};
> -		opp01 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1100000000>;
>  			opp-microvolt = <980000 1000000 1010000>;
>  			opp-microamp = <80000>;
>  			clock-latency-ns = <310000>;
>  		};
> -		opp02 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1200000000>;
>  			opp-microvolt = <1025000>;
>  			opp-microamp = <90000;
> @@ -338,20 +338,20 @@ DVFS state together.
>  		compatible = "operating-points-v2";
>  		opp-shared;
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt = <970000 975000 985000>;
>  			opp-microamp = <70000>;
>  			clock-latency-ns = <300000>;
>  			opp-suspend;
>  		};
> -		opp01 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1100000000>;
>  			opp-microvolt = <980000 1000000 1010000>;
>  			opp-microamp = <80000>;
>  			clock-latency-ns = <310000>;
>  		};
> -		opp02 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1200000000>;
>  			opp-microvolt = <1025000>;
>  			opp-microamp = <90000>;
> @@ -364,20 +364,20 @@ DVFS state together.
>  		compatible = "operating-points-v2";
>  		opp-shared;
>  
> -		opp10 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1300000000>;
>  			opp-microvolt = <1045000 1050000 1055000>;
>  			opp-microamp = <95000>;
>  			clock-latency-ns = <400000>;
>  			opp-suspend;
>  		};
> -		opp11 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1400000000>;
>  			opp-microvolt = <1075000>;
>  			opp-microamp = <100000>;
>  			clock-latency-ns = <400000>;
>  		};
> -		opp12 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1500000000>;
>  			opp-microvolt = <1010000 1100000 1110000>;
>  			opp-microamp = <95000>;
> @@ -404,7 +404,7 @@ Example 4: Handling multiple regulators
>  		compatible = "operating-points-v2";
>  		opp-shared;
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt = <970000>, /* Supply 0 */
>  					<960000>, /* Supply 1 */
> @@ -417,7 +417,7 @@ Example 4: Handling multiple regulators
>  
>  		/* OR */
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt = <970000 975000 985000>, /* Supply 0 */
>  					<960000 965000 975000>, /* Supply 1 */
> @@ -430,7 +430,7 @@ Example 4: Handling multiple regulators
>  
>  		/* OR */
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt = <970000 975000 985000>, /* Supply 0 */
>  					<960000 965000 975000>, /* Supply 1 */
> @@ -462,7 +462,7 @@ Example 5: opp-supported-hw
>  		status = "okay";
>  		opp-shared;
>  
> -		opp00 {
> +		opp@...000000 {
>  			/*
>  			 * Supports all substrate and process versions for 0xF
>  			 * cuts, i.e. only first four cuts.
> @@ -473,7 +473,7 @@ Example 5: opp-supported-hw
>  			...
>  		};
>  
> -		opp01 {
> +		opp@...000000 {
>  			/*
>  			 * Supports:
>  			 * - cuts: only one, 6th cut (represented by 6th bit).
> @@ -506,7 +506,7 @@ Example 6: opp-microvolt-<name>, opp-microamp-<name>, turbo-mode-<name>,
>  		compatible = "operating-points-v2";
>  		opp-shared;
>  
> -		opp00 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1000000000>;
>  			opp-microvolt-slow = <900000 915000 925000>;
>  			opp-microvolt-fast = <970000 975000 985000>;
> @@ -516,7 +516,7 @@ Example 6: opp-microvolt-<name>, opp-microamp-<name>, turbo-mode-<name>,
>  			opp-suspend-slow; /* Will be used as suspend-opp only if 'slow' is chosen */
>  		};
>  
> -		opp01 {
> +		opp@...0000000 {
>  			opp-hz = /bits/ 64 <1200000000>;
>  			opp-microvolt-slow = <900000 915000 925000>, /* Supply vcc0 */
>  					      <910000 925000 935000>; /* Supply vcc1 */
> -- 
> 2.6.2.198.g614a2ac
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ