From patchwork Mon Feb 13 19:40:41 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: 56519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2537626wrn; Mon, 13 Feb 2023 11:43:49 -0800 (PST) X-Google-Smtp-Source: AK7set+Dckl6n5x7aEjsXaCK+8qPtTSRCjd58Ze/Py5Pex6bc9AYPlF6935CZafbo/+EvvNNWszM X-Received: by 2002:a17:906:8258:b0:8af:91a6:de6b with SMTP id f24-20020a170906825800b008af91a6de6bmr79539ejx.50.1676317429308; Mon, 13 Feb 2023 11:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676317429; cv=none; d=google.com; s=arc-20160816; b=OyOgrOla6XT9m82Cw7hPF9k8B1YhWTBbsMl8NBxMnBDSfi5JmWA8+jhB1CMi/+u155 Hl8LMve3Hts6G1VqpKWkdMu17AvYjLAzyLyKBwiXae9Qtq2BVwgSGx1gfDJgEkUn2roo msxFEY8tzRTDxNJyGMOVZLUBxMIdda7c55nxgklC8qTM7LBMY+9FSI1QN6UCJiThwDEk 7V0yXcG+C/9pLf2/wVuGHgjnaYmDhaAmGV751sL7xr+Rt40g9/8qSnR1tXWIqeYIeqNO xTs1KV+dTZCPlBOJsfStUr29txrLhsrBg3Is+5PhJ7si836j/PwkS1UWiDQwSg11GkOc 3iiA== 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=g1S1Dz0ByLRMsB0U0GV2ttWHCRwrFTBxICcN2ewQNEE=; b=SusscgP+fjeREV5nj8iPQe6mxhdBDNIcue6OGpai0lr2qXa5xHm2cf/AfdvynBL1Pl gLBd1Hy7Sfy3oN88L0AxDPISKzXeIkuBBWNrKRbbBWfjtJiYMqgHL2c6oX0aOY0HRfct CmZCuNntI0sPinuT/bysx+Tyo5Wf2zgn9ERQ2SHEAYN0KKN8srmIGnCOtoA8y84c08a3 6Z/ApTFejTZHA84kS38pqrYvuIa+qs6slf1AhWY1FgYvh5eL4jgiG7dk/TaqBtW+pNQ+ +xCeJssLdXJtmqSBlVKgLlvczBm2p0QksK698LMZ7Z0pVsTM6gAyUIwkqbh+NhRi9uFm zDrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Q5YumtOe; dkim=neutral (no key) header.i=@linutronix.de; 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 wl14-20020a170907310e00b008af3fbac6eesi12815602ejb.511.2023.02.13.11.43.26; Mon, 13 Feb 2023 11:43:49 -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=Q5YumtOe; dkim=neutral (no key) header.i=@linutronix.de; 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 S231344AbjBMTk7 (ORCPT + 99 others); Mon, 13 Feb 2023 14:40:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbjBMTkp (ORCPT ); Mon, 13 Feb 2023 14:40:45 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D567B2D45 for ; Mon, 13 Feb 2023 11:40:44 -0800 (PST) Date: Mon, 13 Feb 2023 19:40:41 -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=g1S1Dz0ByLRMsB0U0GV2ttWHCRwrFTBxICcN2ewQNEE=; b=Q5YumtOefpPJWoXEgKDGJ1i0Re4rTfEHboH7XB16ambEif7rS6qXNyiCZIXq1XbkPN7thp 5PT8LKzWviOIKxZEBh8lxxUdsPupfAoocnJS4CWeQz6EIxqNVYfTzEY/W4t0RhcLhsU9y7 CJAMG6RJT/dz+10OMn/vX1Ol6fTJSE493eSXfZF37EMgzuD/8nYnNR2ovcVL6TIGHUvGnv yBoAfQgE+tpvxiR2HGuRu14qWjMoIpGesPGK4IlGr4iHbj2RPvCj5ZiP2aM5pnkVbu8izP puJuqJf1Jc3zkaQpo71kTvM4jXZeyBjqjUXj9bav5JdvsFGbn02H6aP2xyNNlA== 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=g1S1Dz0ByLRMsB0U0GV2ttWHCRwrFTBxICcN2ewQNEE=; b=+CWDFGiFZaQuHl7bEiS12OYauKvFJenA2Jj4kcdzgWP+kHS8D5zqvS1hDtFWSwfWm5n6dq o5dyUry6+5unBeAw== 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/gic-v2m: Use irq_domain_create_hierarchy() Cc: philmd@linaro.org, "Hsin-Yi Wang" , "Mark-PK Tsai" , Johan Hovold , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230213104302.17307-16-johan+linaro@kernel.org> References: <20230213104302.17307-16-johan+linaro@kernel.org> MIME-Version: 1.0 Message-ID: <167631724169.4906.3719073247835646249.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?1757712509933921910?= X-GMAIL-MSGID: =?utf-8?q?1757746224953977612?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: e6e8cd62a56f9ed0dcdf8d01147709b59a111418 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/e6e8cd62a56f9ed0dcdf8d01147709b59a111418 Author: Johan Hovold AuthorDate: Mon, 13 Feb 2023 11:42:57 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 13 Feb 2023 19:31:25 irqchip/gic-v2m: Use irq_domain_create_hierarchy() Use the irq_domain_create_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-16-johan+linaro@kernel.org --- drivers/irqchip/irq-gic-v2m.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index f4d7eeb..f1e75b3 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -287,15 +287,14 @@ static __init int gicv2m_allocate_domains(struct irq_domain *parent) if (!v2m) return 0; - inner_domain = irq_domain_create_tree(v2m->fwnode, - &gicv2m_domain_ops, v2m); + inner_domain = irq_domain_create_hierarchy(parent, 0, 0, v2m->fwnode, + &gicv2m_domain_ops, v2m); if (!inner_domain) { pr_err("Failed to create GICv2m domain\n"); return -ENOMEM; } irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS); - inner_domain->parent = parent; pci_domain = pci_msi_create_irq_domain(v2m->fwnode, &gicv2m_msi_domain_info, inner_domain);