From patchwork Sun Oct 9 06:44:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5ZCV5bu65rCR?= X-Patchwork-Id: 13001910 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A761C43219 for ; Sun, 9 Oct 2022 06:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiJIGoz (ORCPT ); Sun, 9 Oct 2022 02:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbiJIGox (ORCPT ); Sun, 9 Oct 2022 02:44:53 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F9E865B9; Sat, 8 Oct 2022 23:44:48 -0700 (PDT) Received: from loongson-pc.loongson.cn (unknown [10.20.42.32]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxX+DPbUJjsykpAA--.19711S2; Sun, 09 Oct 2022 14:44:31 +0800 (CST) From: Jianmin Lv To: Thomas Gleixner , Marc Zyngier Cc: linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Jiaxun Yang , Huacai Chen , Bjorn Helgaas , Len Brown , rafael@kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH V3 0/4] irqchip: Support to set irq type for ACPI path Date: Sun, 9 Oct 2022 14:44:27 +0800 Message-Id: <20221009064431.18839-1-lvjianmin@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxX+DPbUJjsykpAA--.19711S2 X-Coremail-Antispam: 1UD129KBjvdXo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xthqpl0qxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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]. 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(-)