]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/sifive-plic: Add missing thead,c900-plic match string
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 30 Jan 2022 13:56:34 +0000 (21:56 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 2 Feb 2022 10:49:29 +0000 (10:49 +0000)
commit10dc97ffe2ad20362e407f20e058aec87ae3ec5d
treea50f785221967a3bb3680e1679aaf3174effaa56
parentc6e804ccf2ccbcf856e93ecb86fec61c27c8da25
irqchip/sifive-plic: Add missing thead,c900-plic match string

The thead,c900-plic has been used in opensbi to distinguish
PLIC [1]. Although PLICs have the same behaviors in Linux,
they are different hardware with some custom initializing in
firmware(opensbi).

Qute opensbi patch commit-msg by Samuel:

  The T-HEAD PLIC implementation requires setting a delegation bit
  to allow access from S-mode. Now that the T-HEAD PLIC has its own
  compatible string, set this bit automatically from the PLIC driver,
  instead of reaching into the PLIC's MMIO space from another driver.

[1]: https://github.com/riscv-software-src/opensbi/commit/78c2b19218bd62653b9fb31623a42ced45f38ea6

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Anup Patel <anup@brainfault.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Samuel Holland <samuel@sholland.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220130135634.1213301-3-guoren@kernel.org
drivers/irqchip/irq-sifive-plic.c