mbox series

[V5,0/4] irqchip: Support to set irq type for ACPI path

Message ID 20221022075955.11726-1-lvjianmin@loongson.cn
Headers show
Series irqchip: Support to set irq type for ACPI path | expand

Message

Jianmin Lv Oct. 22, 2022, 7:59 a.m. UTC
For ACPI path of pch-pic and liointc driver, setting irq
type is not supported yet, so the patch series add code
to implement it.

And a bug in translate callback of irqchip/loongson-pch-pic, which
is introduced by previous patch, is fixed.

GSI for legacy irqs of PCI devices are mapped in pch-pic domain, after
supporting setting_irq_type for pch-pic domain, we add the workaround
for LoongArch based PCI controller with high-level trigger intterrupt
so that the high-level trigger type is passed into acpi_register_gsi().
  
V1 -> V2
- Change comment information and fix a bug for DT path in patch[1].

V2 -> V3
- Separate original patch[1] to three patches[1][2][3].

V3 -> V4
- Improve commit log

V4 -> V5
- Improve commit log for patch[1]

Jianmin Lv (4):
  ACPI / PCI: fix LPIC IRQ model default PCI IRQ polarity
  irqchip/loongson-pch-pic: fix translate callback for DT path
  irqchip/loongson-pch-pic: Support to set IRQ type for ACPI path
  irqchip/loongson-liointc: Support to set IRQ type for ACPI path

 drivers/acpi/pci_irq.c                 |  6 ++++--
 drivers/irqchip/irq-loongson-liointc.c |  7 ++++++-
 drivers/irqchip/irq-loongson-pch-pic.c | 14 ++++++++++----
 3 files changed, 20 insertions(+), 7 deletions(-)

Comments

Huacai Chen Oct. 22, 2022, 8:05 a.m. UTC | #1
For the whole series:
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>

On Sat, Oct 22, 2022 at 4:00 PM Jianmin Lv <lvjianmin@loongson.cn> wrote:
>
> For ACPI path of pch-pic and liointc driver, setting irq
> type is not supported yet, so the patch series add code
> to implement it.
>
> And a bug in translate callback of irqchip/loongson-pch-pic, which
> is introduced by previous patch, is fixed.
>
> GSI for legacy irqs of PCI devices are mapped in pch-pic domain, after
> supporting setting_irq_type for pch-pic domain, we add the workaround
> for LoongArch based PCI controller with high-level trigger intterrupt
> so that the high-level trigger type is passed into acpi_register_gsi().
>
> V1 -> V2
> - Change comment information and fix a bug for DT path in patch[1].
>
> V2 -> V3
> - Separate original patch[1] to three patches[1][2][3].
>
> V3 -> V4
> - Improve commit log
>
> V4 -> V5
> - Improve commit log for patch[1]
>
> Jianmin Lv (4):
>   ACPI / PCI: fix LPIC IRQ model default PCI IRQ polarity
>   irqchip/loongson-pch-pic: fix translate callback for DT path
>   irqchip/loongson-pch-pic: Support to set IRQ type for ACPI path
>   irqchip/loongson-liointc: Support to set IRQ type for ACPI path
>
>  drivers/acpi/pci_irq.c                 |  6 ++++--
>  drivers/irqchip/irq-loongson-liointc.c |  7 ++++++-
>  drivers/irqchip/irq-loongson-pch-pic.c | 14 ++++++++++----
>  3 files changed, 20 insertions(+), 7 deletions(-)
>
> --
> 2.31.1
>
>