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: <20230313225103.30512-15-Sergey.Semin@baikalelectronics.ru>
Date:   Tue, 14 Mar 2023 01:51:01 +0300
From:   Serge Semin <Sergey.Semin@...kalelectronics.ru>
To:     Giuseppe Cavallaro <peppe.cavallaro@...com>,
        Alexandre Torgue <alexandre.torgue@...s.st.com>,
        Jose Abreu <joabreu@...opsys.com>,
        "David S. Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>,
        Maxime Coquelin <mcoquelin.stm32@...il.com>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
CC:     Serge Semin <Sergey.Semin@...kalelectronics.ru>,
        Serge Semin <fancer.lancer@...il.com>,
        Alexey Malahov <Alexey.Malahov@...kalelectronics.ru>,
        Pavel Parkhomenko <Pavel.Parkhomenko@...kalelectronics.ru>,
        Christian Marangi <ansuelsmth@...il.com>,
        Richard Cochran <richardcochran@...il.com>,
        Biao Huang <biao.huang@...iatek.com>,
        Yang Yingliang <yangyingliang@...wei.com>,
        <devicetree@...r.kernel.org>, <netdev@...r.kernel.org>,
        <linux-stm32@...md-mailman.stormreply.com>,
        <linux-arm-kernel@...ts.infradead.org>,
        <linux-kernel@...r.kernel.org>
Subject: [PATCH net-next 14/16] dt-bindings: net: dwmac: Use flag definition instead of booleans

Currently some of the boolean properties defined in the DT-schema are
marked to have the basic boolean type meanwhile the rest referencing the
/schemas/types.yaml#/definitions/flag schema. For the sake of unification
let's convert the first group to referencing the pre-defined flag schema.
Thus bindings will look a bit more coherent and the DT-bindings
maintainers will have a better control over the booleans defined in the
schema (if ever needed).

Signed-off-by: Serge Semin <Sergey.Semin@...kalelectronics.ru>
---
 .../devicetree/bindings/net/snps,dwmac.yaml   | 45 ++++++++++++-------
 1 file changed, 30 insertions(+), 15 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 69be39d55403..a863b5860566 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -120,11 +120,13 @@ properties:
         maximum: 12
 
       snps,rx-sched-sp:
-        type: boolean
+        $ref: /schemas/types.yaml#/definitions/flag
         description: Strict priority
+
       snps,rx-sched-wsp:
-        type: boolean
+        $ref: /schemas/types.yaml#/definitions/flag
         description: Weighted Strict priority
+
     allOf:
       - if:
           required:
@@ -144,11 +146,13 @@ properties:
         type: object
         properties:
           snps,dcb-algorithm:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: Queue to be enabled as DCB
+
           snps,avb-algorithm:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: Queue to be enabled as AVB
+
           snps,map-to-dma-channel:
             $ref: /schemas/types.yaml#/definitions/uint32
             description: DMA channel id to map
@@ -156,20 +160,25 @@ properties:
             maximum: 15
 
           snps,route-avcp:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: AV Untagged Control packets
+
           snps,route-ptp:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: PTP Packets
+
           snps,route-dcbcp:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: DCB Control Packets
+
           snps,route-up:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: Untagged Packets
+
           snps,route-multi-broad:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: Multicast & Broadcast Packets
+
           snps,priority:
             $ref: /schemas/types.yaml#/definitions/uint32
             description: Bitmask of the tagged frames priorities assigned to the queue
@@ -255,17 +264,21 @@ properties:
         maximum: 16
 
       snps,tx-sched-wrr:
-        type: boolean
+        $ref: /schemas/types.yaml#/definitions/flag
         description: Weighted Round Robin
+
       snps,tx-sched-wfq:
-        type: boolean
+        $ref: /schemas/types.yaml#/definitions/flag
         description: Weighted Fair Queuing
+
       snps,tx-sched-dwrr:
-        type: boolean
+        $ref: /schemas/types.yaml#/definitions/flag
         description: Deficit Weighted Round Robin
+
       snps,tx-sched-sp:
-        type: boolean
+        $ref: /schemas/types.yaml#/definitions/flag
         description: Strict priority
+
     allOf:
       - if:
           required:
@@ -311,14 +324,16 @@ properties:
             maximum: 0x1312D0
 
           snps,dcb-algorithm:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description: TX queue will be working in DCB
+
           snps,avb-algorithm:
-            type: boolean
+            $ref: /schemas/types.yaml#/definitions/flag
             description:
               TX queue will be working in AVB.
               Queue 0 is reserved for legacy traffic and so no AVB is
               available in this queue.
+
           snps,send_slope:
             $ref: /schemas/types.yaml#/definitions/uint32
             description:
-- 
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ