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: =?utf-8?b?5ZCV5bu65rCR?= X-Patchwork-Id: 527 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1141409wrr; Sat, 22 Oct 2022 03:28:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZF1wSObj7aql8AeJkzMw0mzuqZZhL2H1r/bEbLc/+SA/6sssgESf6QvvtId/Ug57zeZw7 X-Received: by 2002:a17:907:2c59:b0:78d:8e03:134 with SMTP id hf25-20020a1709072c5900b0078d8e030134mr18909171ejc.310.1666434508600; Sat, 22 Oct 2022 03:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666434508; cv=none; d=google.com; s=arc-20160816; b=TqpDu0UWtt+2FmkCIvVfoiS+2vniwbcBJyEWzinEROjmxc8Gl5b/CgZffNRfkzLPW3 BiJrsCz3qL5ODCP2fxa3PPhX81mVwHNfkLZQSQjFbEdXRV1p8bViwu9Vq/G9ErIs4s42 +szWHcGsSqP286l3jSpfNoCyEVg2C9GHsS2YseR8+E/p5TdhJsNQVw9Avq/5aUqBUQ2I WGdESIXK8hMfsrPcVSamnEiLHMCSZQ0DIW8OrpikUrfQN6umuzyJnRn07N7oYJ9AMYnU drvms2U1/2Gtp8/rDYN4ZajwaFK/waEYQkSC5NCPIL3FQOtUN+sRgPo2lwU8gbq/uCjn RETQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WCDw3CDjhgthQFBxQ/tBl+2f5DpC/xIbdq9UAT5sMXs=; b=Y95YfxM9u47yUvo1zjfUEDQtHERGGhbjuIF8C13gu9Bn1FqEdlLd78vnPe7MkVIdR5 i3VX97Bpfc54SW9nslxVn7FR6Bc3UrA7Nrdlu8Zp0Ni/ykmGg1Z0HqWgqGzZISnOthwl Y8rKNqwXz6AOWZBtP59PF89arTR4XA8yF9t8GsVycfBvVH64k37r6el27lTCNBZuBoF/ sjCADuPlbC2LPFwdSemxa+5Dsgsz+q1XdYZvj2JbyyAOyvgz5/FcENPnRB7KUetyo4Hf QW+J0jlvFg9ZSQZhN/foNzyiMPkYk3cRUYOubeVpGeiSwrDs6daeDnFwPHKu5fO1pwb0 tUag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a170906500800b0078d3b940ec5si19630171ejj.373.2022.10.22.03.28.03; Sat, 22 Oct 2022 03:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbiJVK0Y (ORCPT + 99 others); Sat, 22 Oct 2022 06:26:24 -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.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Dx_1f7olNjLlUDAA--.13337S2 X-CM-SenderInfo: 5oymxthqpl0qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBjvJXoWrKFWUur13CryDAFy3XrWfAFb_yoW8JryUpa yxCa98tF9xKry2kas3Cr15X343ta1ftrZrKayfK3W29rZ8Wr1v9F18AFWDZas8Cw13GryI 9r1FgF1UWa15CFJanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bSxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l n4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E 87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxV Aaw2AFwI0_JF0_Jw1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxY O2xFxVAFwI0_Jrv_JF1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGV WUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_ Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rV WUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4U JbIYCTnIWIevJa73UjIFyTuYvjxUxYiiDUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747379399004749713?= X-GMAIL-MSGID: =?utf-8?q?1747383231406032168?= 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(-)