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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240703091651.2820236-10-quic_varada@quicinc.com>
Date: Wed, 3 Jul 2024 14:46:50 +0530
From: Varadarajan Narayanan <quic_varada@...cinc.com>
To: <vireshk@...nel.org>, <nm@...com>, <sboyd@...nel.org>, <robh@...nel.org>,
        <krzk+dt@...nel.org>, <conor+dt@...nel.org>,
        <angelogioacchino.delregno@...labora.com>, <andersson@...nel.org>,
        <konrad.dybcio@...aro.org>, <mturquette@...libre.com>,
        <ilia.lin@...nel.org>, <rafael@...nel.org>, <ulf.hansson@...aro.org>,
        <quic_sibis@...cinc.com>, <quic_rjendra@...cinc.com>,
        <quic_rohiagar@...cinc.com>, <abel.vesa@...aro.org>,
        <otto.pflueger@...cue.de>, <danila@...xyga.com>,
        <quic_varada@...cinc.com>, <quic_ipkumar@...cinc.com>,
        <luca@...tu.xyz>, <stephan.gerhold@...nkonzept.com>, <nks@...wful.org>,
        <linux-pm@...r.kernel.org>, <devicetree@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>, <linux-arm-msm@...r.kernel.org>,
        <linux-clk@...r.kernel.org>
Subject: [PATCH v4 09/10] dt-bindings: opp: v2-qcom-level: Update minItems for oloop-vadj & cloop-vadj

Since IPQ9574 has only one CPR thread it will specify
only one voltage adjustment value. Hence update min items
accordingly for oloop-vadj and cloop-vadj. Without
constraining min items, dt_binding_check gives errors

	opp-table-cpr4:opp-0:qcom,opp-cloop-vadj:0: [0] is too short
	opp-table-cpr4:opp-0:qcom,opp-oloop-vadj:0: [0] is too short

	Failed validating 'minItems' in schema . . .
		{'maxItems': 2, 'minItems': 2}

Signed-off-by: Varadarajan Narayanan <quic_varada@...cinc.com>
---
v4: Fix dt_bindings_check error
---
 Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml b/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
index b203ea01b17a..1c1a9e12d57a 100644
--- a/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
+++ b/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
@@ -39,6 +39,7 @@ patternProperties:
           An array of per-thread values representing the closed-loop
           voltage adjustment value associated with this OPP node.
         $ref: /schemas/types.yaml#/definitions/int32-array
+        minItems: 1
         maxItems: 2
 
       qcom,opp-oloop-vadj:
@@ -46,6 +47,7 @@ patternProperties:
           An array of per-thread values representing the open-loop
           voltage adjustment value associated with this OPP node.
         $ref: /schemas/types.yaml#/definitions/int32-array
+        minItems: 1
         maxItems: 2
 
     required:
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ