]> 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)
commita0932b3dda925d81b27096cd841856adc0d0fa00
treeffaff7809d206f1416fc1ccf2244b1a286c1eb71
parentb977eea4400498963da0156365ddb23c9fecdfb2
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