[PATCH 0/4] irqchip/sg2042-msi: Set irq type according to DT configuration
Chen Wang
unicornxw at gmail.com
Sun Aug 24 23:54:24 PDT 2025
From: Chen Wang <unicorn_wang at outlook.com>
The original MSI interrupt type was hard-coded, which was not a good idea.
Now it is changed to read the device tree configuration and then set the
interrupt type.
Also improve the code to obtain msi-ranges parameters in this patchset.
This patchset is based on irq/drivers branch of tip.
Chen Wang (4):
irqchip/sg2042-msi: Improve the logic of obtaining msi-ranges
parameters
irqchip/sg2042-msi: Set irq type according to DT configuration
riscv: sophgo: dts: sg2042: change msi irq type to
IRQ_TYPE_EDGE_RISING
riscv: sophgo: dts: sg2044: change msi irq type to
IRQ_TYPE_EDGE_RISING
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 2 +-
arch/riscv/boot/dts/sophgo/sg2044.dtsi | 2 +-
drivers/irqchip/irq-sg2042-msi.c | 21 ++++++++-------------
3 files changed, 10 insertions(+), 15 deletions(-)
base-commit: 8ff1c16c753e293c3ba20583cb64f81ea7b9a451
--
2.34.1
More information about the linux-riscv
mailing list