From patchwork Sat Nov 26 13:34:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 26243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp4634215wrr; Sat, 26 Nov 2022 05:36:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Hfc6WIcTBq3FSNMs62Y3rpvWyft4tSJAGLE98fFrfEij50qASA3NdKVx1eqYTKEqFRgCk X-Received: by 2002:a62:33c4:0:b0:572:9681:1018 with SMTP id z187-20020a6233c4000000b0057296811018mr27367705pfz.39.1669469763608; Sat, 26 Nov 2022 05:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669469763; cv=none; d=google.com; s=arc-20160816; b=LCT2x3TGQpUC0VlwMfW3l5Bb8AGXkX4HYQDNkAmIjKUgBsLhoj4+LhPdX1wRVdAeDA FFK9yfAT0DwRN7G7J3MHHB7h1bzvzCsXJ50yv8vsZUXCXtEusqO7uAHY7Og4Al5hwc+b 6FqNBRTXAs0ke0z7bZaQMmOO+K2jLL0IsBVITMNi21zVcCrBDHN8EHV7T4Yc7BEI8Bdk ATlZmS3HoUk6//Wr11MHr1GOBoDuv5qixdghKdIKbO6Y312+QOXD7CSRb40Mk2lwUK8H lhpd19bnKr2cQ9mejX2I/1I/fNBIUFlBVz79FTwpRz9LUSJgv6WuWQLFiYvq0MCj4VJw BpYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=6cMHiTnnsZa8gELtbjnBDsj91d3PQ2avyOLhJDfd1PY=; b=oFaLiZ48WRYiKTUWGKIJEqRF+VBxpwH6okFw+MyAjTDtsjhAxBHfp/HUoDKog/DGEb mclb0rWgAjUTvT5efs2JwDeGtMw/PomIyjAgjFF5TNdnUgKB4B5O3xFFx1sCpm8Bh7cx BvTDTA3XTS4WlnxkEEVr9z9NEfgKMz5R6/bDRQhWM53LJoSByXuFvBhy29+fWX+PFt+s lnABhfV97AOT42RMFG05nS68rgOK7IlKXRdygcvbac9ZpWZN3h9jTfevYVR6oVOCvkMT n3Gd9x/JgxTxBwYMkRiRPq+OE1RZiXBLZxJj5hjbPE9lj0FcO4Q5h/NI3hl9UtJRX+sP tzDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3Ahz5lhX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=W61D3nBX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju11-20020a170903428b00b00188881adcd7si5999818plb.550.2022.11.26.05.35.50; Sat, 26 Nov 2022 05:36:03 -0800 (PST) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3Ahz5lhX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=W61D3nBX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbiKZNfY (ORCPT + 99 others); Sat, 26 Nov 2022 08:35:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiKZNe5 (ORCPT ); Sat, 26 Nov 2022 08:34:57 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA0520BC9 for ; Sat, 26 Nov 2022 05:34:44 -0800 (PST) Date: Sat, 26 Nov 2022 13:34:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669469682; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6cMHiTnnsZa8gELtbjnBDsj91d3PQ2avyOLhJDfd1PY=; b=3Ahz5lhXSUvUlL7WSQD9WPaqLQRfQ+Z7Ttb6nD7jcxXbdoXa+wbXV90aHRoZaN+Y4omV5v 4K+63fBE30s10/w+b5O6Q7/tRKTa2lgd4pg3vR8grHUDoofvJ3q9Sxivgb6D9vfjueoEKT xfkNqHNhRVSOck8Jr2cKPNCXKIuTBCr4cLOZjKa19yzrfUXIHCyWi7ifQxdP7XuC+eaJft Lzc9XCcNpW19Lo1Svm5XEhSZWwFdFnMEzif3u+EOUFNasP/sIlazIH5JiWs43xFhZ4ZFQt bGrT616K4M8BdC/41Dwz/PSgmtI9QcSxV7nWB1SYCr1n8qlWH5s+JP9C1J1uFQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669469682; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6cMHiTnnsZa8gELtbjnBDsj91d3PQ2avyOLhJDfd1PY=; b=W61D3nBXa7eFt6vQSEKB79m3VTQ5fFi39BfidOmvPOUYz64yQQo8mw8jSYMylfHQ3kMCmv ggIu9gC4Lnh4pRAQ== From: "irqchip-bot for Jianmin Lv" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/loongson-liointc: Support to set IRQ type for ACPI path Cc: Jianmin Lv , Huacai Chen , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20221022075955.11726-5-lvjianmin@loongson.cn> References: <20221022075955.11726-5-lvjianmin@loongson.cn> MIME-Version: 1.0 Message-ID: <166946968164.4906.15023749604647332635.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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?1747379492703790566?= X-GMAIL-MSGID: =?utf-8?q?1750565927301069952?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 17343d0b4039196517ab5c40d8fce3e8d394c526 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/17343d0b4039196517ab5c40d8fce3e8d394c526 Author: Jianmin Lv AuthorDate: Sat, 22 Oct 2022 15:59:55 +08:00 Committer: Marc Zyngier CommitterDate: Sat, 26 Nov 2022 13:05:49 irqchip/loongson-liointc: Support to set IRQ type for ACPI path For ACPI path, the xlate callback used IRQ_TYPE_NONE and ignored the IRQ type in intspec[1]. For supporting to set type for IRQs of the irqdomain, intspec[1] should be used to get IRQ type. Signed-off-by: Jianmin Lv Reviewed-by: Huacai Chen Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20221022075955.11726-5-lvjianmin@loongson.cn --- drivers/irqchip/irq-loongson-liointc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c index 0da8716..838c8fa 100644 --- a/drivers/irqchip/irq-loongson-liointc.c +++ b/drivers/irqchip/irq-loongson-liointc.c @@ -167,7 +167,12 @@ static int liointc_domain_xlate(struct irq_domain *d, struct device_node *ctrlr, if (WARN_ON(intsize < 1)) return -EINVAL; *out_hwirq = intspec[0] - GSI_MIN_CPU_IRQ; - *out_type = IRQ_TYPE_NONE; + + if (intsize > 1) + *out_type = intspec[1] & IRQ_TYPE_SENSE_MASK; + else + *out_type = IRQ_TYPE_NONE; + return 0; }