Skip to content

Commit

Permalink
dt-bindings: perf: riscv,pmu: fix property dependencies
Browse files Browse the repository at this point in the history
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: 7e38085 ("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>
  • Loading branch information
Conor Dooley authored and Rob Herring committed May 4, 2023
1 parent 37f225e commit 4d276e4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/perf/riscv,pmu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ properties:

dependencies:
"riscv,event-to-mhpmevent": [ "riscv,event-to-mhpmcounters" ]
"riscv,event-to-mhpmcounters": [ "riscv,event-to-mhpmevent" ]

required:
- compatible
Expand Down

0 comments on commit 4d276e4

Please sign in to comment.