]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dt-bindings: perf: riscv,pmu: fix property dependencies
authorConor Dooley <conor.dooley@microchip.com>
Tue, 4 Apr 2023 18:03:22 +0000 (19:03 +0100)
committerRob Herring <robh@kernel.org>
Thu, 4 May 2023 21:54:49 +0000 (16:54 -0500)
Seemingly I mis-implemented the dependencies here. The OpenSBI docs only
point out that the "riscv,event-to-mhpmcounters property is mandatory if
riscv,event-to-mhpmevent is present". It never claims that
riscv,event-to-mhpmcounters requires riscv,event-to-mhpmevent.

Drop the dependency of riscv,event-to-mhpmcounters on
riscv,event-to-mhpmevent.

Fixes: 7e38085d9c59 ("dt-bindings: riscv: add SBI PMU event mappings")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20230404-tractor-confusing-8852e552539a@spud
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/perf/riscv,pmu.yaml

index a55a4d047d3fd96e346460b6a86cd1094b1f249b..c8448de2f2a07c8999d936ea7584058d1823a319 100644 (file)
@@ -91,7 +91,6 @@ properties:
 
 dependencies:
   "riscv,event-to-mhpmevent": [ "riscv,event-to-mhpmcounters" ]
-  "riscv,event-to-mhpmcounters": [ "riscv,event-to-mhpmevent" ]
 
 required:
   - compatible