]> 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)
commit121570d531af36d50a5694c6fd41973c9dbc8450
tree351489f538a56d684e7f462da3026aee5a4c8710
parentc5058a72152ed2ec63b597b208524a372ba3fa95
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: 8fc870e76694 ("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