]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: net: ethernet-controller: Rework 'fixed-link' schema
authorRob Herring <robh@kernel.org>
Tue, 19 Jul 2022 21:50:59 +0000 (15:50 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2022 11:38:16 +0000 (12:38 +0100)
commit17161c341de0b02788b0428cb253a35b9a3c89b3
treeffaff7809d206f1416fc1ccf2244b1a286c1eb71
parentb20a7ca8cfa4dce01f848056fe6313b444b7dcf5
dt-bindings: net: ethernet-controller: Rework 'fixed-link' schema

While the if/then schemas mostly work, there's a few issues. The 'allOf'
schema will also be true if 'fixed-link' is not an array or object as a
false 'if' schema (without an 'else') will be true. In the array case
doesn't set the type (uint32-array) in the 'then' clause. In the node case,
'additionalProperties' is missing.

Rework the schema to use oneOf with each possible type.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/ethernet-controller.yaml