irqchip/sifive-plic: Fix maximum priority threshold value
authorAtish Patra <atish.patra@wdc.com>
Fri, 3 Apr 2020 01:46:09 +0000 (18:46 -0700)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Apr 2020 07:59:28 +0000 (08:59 +0100)
commitd727be7bbf7b68ccc18a3278469325d8f486d75b
tree351489f538a56d684e7f462da3026aee5a4c8710
parent3688b0db5c331f4ec3fa5eb9f670a4b04f530700
irqchip/sifive-plic: Fix maximum priority threshold value

As per the PLIC specification, maximum priority threshold value is 0x7
not 0xF. Even though it doesn't cause any error in qemu/hifive unleashed,
there may be some implementation which checks the upper bound resulting in
an illegal access.

Fixes: ccbe80bad571 ("irqchip/sifive-plic: Enable/Disable external interrupts upon cpu online/offline")
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200403014609.71831-1-atish.patra@wdc.com
drivers/irqchip/irq-sifive-plic.c