]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: interrupt-controller: Require trigger type for T-HEAD PLIC
authorSamuel Holland <samuel@sholland.org>
Thu, 30 Jun 2022 10:02:40 +0000 (05:02 -0500)
committerMarc Zyngier <maz@kernel.org>
Fri, 1 Jul 2022 14:27:23 +0000 (15:27 +0100)
commit3ffc528ae240b7757ed896f9d4f5e595d006303d
treebd68ce1db282476746eb3d4d57d5f6e4b2c39f12
parentaf3e17a59c48efa506646b0f81d980e1c6befe1c
dt-bindings: interrupt-controller: Require trigger type for T-HEAD PLIC

The RISC-V PLIC specification unfortunately allows PLIC implementations
to ignore edges seen while an edge-triggered interrupt is being handled:

  Depending on the design of the device and the interrupt handler,
  in between sending an interrupt request and receiving notice of its
  handler’s completion, the gateway might either ignore additional
  matching edges or increment a counter of pending interrupts.

Like the NCEPLIC100, the T-HEAD C900 PLIC also has this behavior. Thus
it also needs to inform software about each interrupt's trigger type, so
the driver can use the right interrupt flow.

Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220630100241.35233-4-samuel@sholland.org
Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml