]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8da5ca56c0c4e80699cb85a6b24f9fa8323fa45
tree351489f538a56d684e7f462da3026aee5a4c8710
parent4ad03e03a8fca22f1a7c98b1aca9525d38c1d25e
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: 4fb464619786 ("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