]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: riscv: Limit cpus schema to only check RiscV 'cpu' nodes
authorRob Herring <robh@kernel.org>
Wed, 26 Jun 2019 23:57:59 +0000 (17:57 -0600)
committerRob Herring <robh@kernel.org>
Sun, 21 Jul 2019 02:28:52 +0000 (20:28 -0600)
commit7495a6481278cfeb22ab8e9850f229594fda6562
treea18df49f4904cd820cd473eaebaa908c77528a7a
parent38ac9f4dcbc09e055dd89ca21aa7609a90a81a1e
dt-bindings: riscv: Limit cpus schema to only check RiscV 'cpu' nodes

Matching on the 'cpus' node was a bad choice because the schema is
incorrectly applied to non-RiscV cpus nodes. As we now have a common cpus
schema which checks the general structure, it is also redundant to do so
in the Risc-V CPU schema.

The downside is one could conceivably mix different architecture's cpu
nodes or have typos in the compatible string. The latter problem pretty
much exists for every schema.

Acked-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/riscv/cpus.yaml