From patchwork Mon Feb 13 19:40:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 56518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2537587wrn; Mon, 13 Feb 2023 11:43:43 -0800 (PST) X-Google-Smtp-Source: AK7set/PnaaV61GUGvF0cIoWlpP1jeAx1AdENOO01CcoeHWmOZd1pEcWnDzdhKS/DZawposicJEF X-Received: by 2002:a50:99d1:0:b0:4ac:bbb4:9772 with SMTP id n17-20020a5099d1000000b004acbbb49772mr7403547edb.40.1676317422842; Mon, 13 Feb 2023 11:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676317422; cv=none; d=google.com; s=arc-20160816; b=x9819XlriqqmfZjlDEJKfQwwkVD2n4dgpc+N/ByHS1WTmM6rm5oL8Cq4tRJTd0wN68 06kx5ZC8TpbMR/l5xme/ixDSbWQ5s6IdMA8FiwnbDRA+WMx+DiOA5f6qZw9TI7IK/RUZ ekEbckkYrYrVrKmLxDk0POgPOWFBhuofcrJLgdSgZC98/tiPii5HOpm5YBmGH9BylWjT 7pjxXKvF9MeSb5ux/1T3ZAxi3s98G8/YhxluILiJmg8b/zKOxsd+cPSgRh2qeRXsFrb4 juzpzn+y8I855MrUwpOcQm3DcY6Yu25FdzHTRI/fReZJD/fDNzFDs/CtEgX26RrwWh3c 5sDA== 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=CKprd8BMHCT+tZac0C1ZgJOLq3dim93vP8Urh1NVMdA=; b=ktZRxDdzo/iRsNgJHbLq1SvOBlimDVNUCVgTmgXBa4KrVpoFBUjyt81w1bLafmoRN7 6WzVF/TlZjdvTh5SEWPOR1ff/A301IlXu8IDeAt3zslw3J5USeglokhNCi/tHaLjhFkP 3W/crPEvoE0SO6qjGqIgCtNNKwPIXVM+IgYciOtq3NlmecyDVT6O4ELHOMvIx4iYftgR V9CMqJZrSUzFYrWP7nZy3vf2J2Nonvs65unAAMYFps6zkhwiHMoMCCP+7JA1X6Zc1W9f wy38KzX7/gI4iznHDaIRcxyugoe/MEnIzbY/CCpKExbrRgdQqtiODinui4dfvqwXP2TK HN7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Eg4t4pTY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9rdlBltY; 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 j16-20020aa7de90000000b004ab498f69c4si11304932edv.242.2023.02.13.11.43.20; Mon, 13 Feb 2023 11:43:42 -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=Eg4t4pTY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9rdlBltY; 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 S231337AbjBMTkz (ORCPT + 99 others); Mon, 13 Feb 2023 14:40:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbjBMTkp (ORCPT ); Mon, 13 Feb 2023 14:40:45 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D81CA3591 for ; Mon, 13 Feb 2023 11:40:44 -0800 (PST) Date: Mon, 13 Feb 2023 19:40:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1676317242; 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=CKprd8BMHCT+tZac0C1ZgJOLq3dim93vP8Urh1NVMdA=; b=Eg4t4pTYr0G2AJ3R8orkjsHioCr1ydS4joen105gYGt9GmuKrer13XSya7nBVeIxC17DLa Pr1WkHewLya+zNnwsujtlp8iWPWkYh3wdRySNdU8PtpjpmCEXJlBmrgpfKscdBkr+gYXnk SHN85h6EEzJTeDNxoAceaxZYhY76u46FLTaw5DM2jHEYGFhd2OWQY2RHaRDP+G7Up9O8Dw 15G9o09hAAn3LvSUsp8kRu9Dsy22mYustSgqNAZlX0DeSoC5MQMpu8Y8N0vu1COV65RNRE 9zIdQb1wQEQf2dK173Skz5ZTRktrUD+ZXAIY4OT5sygwyAz38ZnSnzWzrs8UXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1676317242; 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=CKprd8BMHCT+tZac0C1ZgJOLq3dim93vP8Urh1NVMdA=; b=9rdlBltYdYLVnSPYDcN/rRNLwKG/37Gn4Kh6QuCVO79h+VKB/mJ5VViXWf+UfZIAXJj7Fe +ei21ptgv66vNKAQ== From: "irqchip-bot for Johan Hovold" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/alpine-msi: Use irq_domain_add_hierarchy() Cc: philmd@linaro.org, "Hsin-Yi Wang" , "Mark-PK Tsai" , Johan Hovold , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230213104302.17307-15-johan+linaro@kernel.org> References: <20230213104302.17307-15-johan+linaro@kernel.org> MIME-Version: 1.0 Message-ID: <167631724209.4906.6344400537372680289.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?1757712459683225153?= X-GMAIL-MSGID: =?utf-8?q?1757746217961940225?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 6c889231e04dffa4b668c1f0fbc26db679600147 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/6c889231e04dffa4b668c1f0fbc26db679600147 Author: Johan Hovold AuthorDate: Mon, 13 Feb 2023 11:42:56 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 13 Feb 2023 19:31:25 irqchip/alpine-msi: Use irq_domain_add_hierarchy() Use the irq_domain_add_hierarchy() helper to create the hierarchical domain, which both serves as documentation and avoids poking at irqdomain internals. Reviewed-by: Philippe Mathieu-Daudé Tested-by: Hsin-Yi Wang Tested-by: Mark-PK Tsai Signed-off-by: Johan Hovold Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20230213104302.17307-15-johan+linaro@kernel.org --- drivers/irqchip/irq-alpine-msi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-alpine-msi.c b/drivers/irqchip/irq-alpine-msi.c index 5ddb8e5..6044593 100644 --- a/drivers/irqchip/irq-alpine-msi.c +++ b/drivers/irqchip/irq-alpine-msi.c @@ -204,16 +204,14 @@ static int alpine_msix_init_domains(struct alpine_msix_data *priv, return -ENXIO; } - middle_domain = irq_domain_add_tree(NULL, - &alpine_msix_middle_domain_ops, - priv); + middle_domain = irq_domain_add_hierarchy(gic_domain, 0, 0, NULL, + &alpine_msix_middle_domain_ops, + priv); if (!middle_domain) { pr_err("Failed to create the MSIX middle domain\n"); return -ENOMEM; } - middle_domain->parent = gic_domain; - msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(node), &alpine_msix_domain_info, middle_domain);