From patchwork Sat Oct 22 07:59:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianmin Lv X-Patchwork-Id: 617926 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 AAD11C04A95 for ; Sat, 22 Oct 2022 10:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbiJVK0S (ORCPT ); Sat, 22 Oct 2022 06:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiJVKZm (ORCPT ); Sat, 22 Oct 2022 06:25:42 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DFE5030A409; Sat, 22 Oct 2022 02:41:19 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.32]) by gateway (Coremail) with SMTP id _____8BxWtj7olNjJp0BAA--.5222S3; Sat, 22 Oct 2022 15:59:55 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.42.32]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_1f7olNjLlUDAA--.13337S2; Sat, 22 Oct 2022 15:59:55 +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 V5 0/4] irqchip: Support to set irq type for ACPI path Date: Sat, 22 Oct 2022 15:59:51 +0800 Message-Id: <20221022075955.11726-1-lvjianmin@loongson.cn> X-Mailer: git-send-email 2.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F4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rV WUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4U JbIYCTnIWIevJa73UjIFyTuYvjxUxYiiDUUUU 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]. 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(-) Reviewed-by: Huacai Chen