From patchwork Mon Feb 13 19:40:40 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: 56514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2537494wrn; Mon, 13 Feb 2023 11:43:27 -0800 (PST) X-Google-Smtp-Source: AK7set9I0IYpD/jtMnn0jfrPqqyjJogOn0HHBk+Yf3H5d0/yKSGuHY69HLjuqhsP295Sa+dlp2tA X-Received: by 2002:a50:ab58:0:b0:4ac:bf55:7d61 with SMTP id t24-20020a50ab58000000b004acbf557d61mr6247861edc.9.1676317407045; Mon, 13 Feb 2023 11:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676317407; cv=none; d=google.com; s=arc-20160816; b=aHFI8W2DIh2Bxn3+5s/Rq78kDp5a02MyP/oxWTlPVu8SUt+Zhpr34WUu8EN1HIIpwR 6iQQZYra+v6MeQCIJ+vIz7uizLD25Ecn8q994Bn4SWws9Kq9BDcsvfFayHHOvRZ4CprN SNW3ndlNeu+SlazcQlL+MLaT4XGUPZe4NY1d5apO5NVORapjGbcqOHB9GIdPy8Tyvfy1 4hy5UpR4f6tZqA2aMpYE1dCBHfxoT3Ulr8lw8HQh7RtteXjGMysztl2ZC0nBTUrpNCgX 06GL00WfHiTaFyo25i4Tl4r6vKBW8+xoVWhLis1Yd1mMM2sUtUw/I5EBhb3u1D9qWaUz E12Q== 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=Yejs4r5Jd11TylWqptUJ2acsbmgTrASwGGRsqi9QYT0=; b=RfvbG+Xirg6Ei+ywHhytgy8WKZ3sQj/lRwxZdWRpZTEUtToMN1kECJAFKv58SED7QA 5WguLs6Enh1kxO6YhhZ/ldHCekncHat1PbfSSRjlav/puwF337dT9s7myIZd0VgSnmVl 9VNh8LezJ5A/AvAOwlqZv8eKTsuLWhhSJ9tru6jkq/eBnRWp9Kphg8zOEmZNyqGv5Uu8 PrpC/tWyrhkrLdmNv304FDDtNHOZRjRie4jjlcBc4XpgI0R830Hds544EBkT+rPR+Bta tzcfpoqo9qYEYMhNtA1/xZqx0XE9aVQdxpbGnYyDwbVmf5Ihz+nUCo1gKgy7N+cGp3ZK qxqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=akOwMFnC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=YtNTfiyA; 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 b20-20020aa7dc14000000b004aac4b55319si14072811edu.480.2023.02.13.11.43.04; Mon, 13 Feb 2023 11:43:27 -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=akOwMFnC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=YtNTfiyA; 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 S231294AbjBMTkv (ORCPT + 99 others); Mon, 13 Feb 2023 14:40:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjBMTko (ORCPT ); Mon, 13 Feb 2023 14:40:44 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F26B40FD for ; Mon, 13 Feb 2023 11:40:42 -0800 (PST) Date: Mon, 13 Feb 2023 19:40:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1676317241; 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=Yejs4r5Jd11TylWqptUJ2acsbmgTrASwGGRsqi9QYT0=; b=akOwMFnCqPFdcNK6HgMPZhXYNk5qpkp1pB/RNfiyf/5vkt4l5BpyNU+4r8GVLzo6YrCT50 KCeV/l0oAaxZaGvx53FEH4r50b4st2dTHvys5lRHnljL9wnIYZKCm1FrQ7KogVdK/Rk8Ha k+ovn80pqhS2sfsHN7SmCWeSiASQ18NS1oP1wADP8yS5oJbJpk+WOaQedy+hmnNscPZOfI zlpTqINogOntAyRebCYadD80BJEvf4ir2gym+U9WTxqQm+Pgdgi9cMLwPyhkYsG8oZ0fxz nc6NJQ2fRwZyk/tvAXU+m8PcXCYsu+m3SqrNg28Hgu6solTp6VzfJCPNuR7lvw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1676317241; 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=Yejs4r5Jd11TylWqptUJ2acsbmgTrASwGGRsqi9QYT0=; b=YtNTfiyAZKjiAdHq33iCzS64AQgR7J/cvS1lfDWmke2pLVwMbXAhMvblmZyqIYiNochnFZ sGFwJ6yxxAWFdoBA== 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-v3-mbi: 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-18-johan+linaro@kernel.org> References: <20230213104302.17307-18-johan+linaro@kernel.org> MIME-Version: 1.0 Message-ID: <167631724086.4906.11073030505305528659.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?1757712479866044245?= X-GMAIL-MSGID: =?utf-8?q?1757746201185861748?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 331f9aac03267f76a15776260eda4f47b81731f7 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/331f9aac03267f76a15776260eda4f47b81731f7 Author: Johan Hovold AuthorDate: Mon, 13 Feb 2023 11:42:59 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 13 Feb 2023 19:31:25 irqchip/gic-v3-mbi: 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-18-johan+linaro@kernel.org --- drivers/irqchip/irq-gic-v3-mbi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-mbi.c b/drivers/irqchip/irq-gic-v3-mbi.c index e1efdec..dbb8b1e 100644 --- a/drivers/irqchip/irq-gic-v3-mbi.c +++ b/drivers/irqchip/irq-gic-v3-mbi.c @@ -233,13 +233,12 @@ static int mbi_allocate_domains(struct irq_domain *parent) struct irq_domain *nexus_domain, *pci_domain, *plat_domain; int err; - nexus_domain = irq_domain_create_tree(parent->fwnode, - &mbi_domain_ops, NULL); + nexus_domain = irq_domain_create_hierarchy(parent, 0, 0, parent->fwnode, + &mbi_domain_ops, NULL); if (!nexus_domain) return -ENOMEM; irq_domain_update_bus_token(nexus_domain, DOMAIN_BUS_NEXUS); - nexus_domain->parent = parent; err = mbi_allocate_pci_domain(nexus_domain, &pci_domain);