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: 56512 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2537438wrn; Mon, 13 Feb 2023 11:43:18 -0800 (PST) X-Google-Smtp-Source: AK7set94CylLDoatsNtrPvxyKL/LQYmRBVt60mC3GyBjYvXyJljNO8z4p94WenzQDJSzuSSx14sA X-Received: by 2002:a50:954b:0:b0:4ab:eac:30f2 with SMTP id v11-20020a50954b000000b004ab0eac30f2mr19706896eda.18.1676317398386; Mon, 13 Feb 2023 11:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676317398; cv=none; d=google.com; s=arc-20160816; b=ro1dgUJn2bHaLImJb7Pm7GpCEIgeCpEdCDYp7u7iJ/Y4kS28+ApfGRUMRvF0wbPnPZ xrZP+YdHDF/XbBWblycSfRyr1q131NDvmUBNp6tWxGnBXkdpJtWNORrKQN04t+fdN/UN 7i6Liun1XgEC9ix7p7WO4zoeC/bE3xPkPpC8ndG0QwCLfOX2p218rJdyb0/oAXLN+gv+ 8pKxMYAh0OQE8x3sM+oZ3/hO+QsQnsrYWNgFw1rMpAtMmVh1nN5nPjTzBFa1dECCIvPq cTbxSaqrLs2K39u54rOquWckreHEIrFzioM10ZNB4DY5/BfhDfsSqCFvabKn1wZCgUZp zmTQ== 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=L5Rhtrf0D3p15rnvgYR/8EbYl0yHziBxK81V30P0MDg=; b=b3ZMRKkH5J6syXJj4NfZEOE4CHAMTZHWNrcL6phistPo7luCAdKHcyhn1yNIc2y60v /p2sORhan6eBKrohKqrprJr6Ibi7hRVFMAgRIvM+LRL7HDTadL4mAj9nj+Hu0GpxiOeW UI0oECPdfH20isKo0lja/4TGIWo7dYXQ7fJFQnaA/wOhXUWtEkNvre6G3Ype3+Itv57Y kVbETdOJxhydO+NdHx5pQ4xix50GCuD/e+5fdUX1Tw6IpZouS4irgBtjmJw3JpHfQqyQ pX8r8qMnRzZI6ADVGMj1BwhkS+Mv4ZmgMA6tmVEytLlwVYJ/ETgh8mNVCghFSA5/GR8Y +DjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="rfi3o/lC"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="wpR4eQ/q"; 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 t25-20020a056402021900b0049e998afc2esi16289962edv.556.2023.02.13.11.42.55; Mon, 13 Feb 2023 11:43:18 -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="rfi3o/lC"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="wpR4eQ/q"; 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 S231219AbjBMTkq (ORCPT + 99 others); Mon, 13 Feb 2023 14:40:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjBMTkn (ORCPT ); Mon, 13 Feb 2023 14:40:43 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1107B2D45 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=1676317240; 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=L5Rhtrf0D3p15rnvgYR/8EbYl0yHziBxK81V30P0MDg=; b=rfi3o/lCRFMKDorA+GLnqsaSnh/XDqNUqJm7lh4+JldLfO3YOqE1TOD4FoyaUPjugyGC12 MXiWbKl4oOyE8kEN6+dmxSwKYuW9m/XJCV13j+6TH+dqGrmTAc2k/gdlzQDYxnJOxSwr8x /AKtcTZOAAirLUO2J++mx6pur8uhzy6zocfdo/h4PbCoiiBA9DNcGXpMpsE5UYJgmoXOyv sZfcA/VPeMca6ZobXBYQQz/kOMgkHrv5FigVNztvh19ptQmcDo1RNaI0lCKIA7JLnaqL3P TLtVCcpggeTafCPFX2tV6zzNVgtL9SoL7VDn0Whf71SlKKR36McKDgLF4MJndA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1676317240; 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=L5Rhtrf0D3p15rnvgYR/8EbYl0yHziBxK81V30P0MDg=; b=wpR4eQ/qAKYRIZskmFzR3scZrfKPPdXvbLp2Ya6el2GniqobqG72A2c69LhZdgo7bR55XJ H7ICr6WH8SgtmWAg== 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/mvebu-odmi: 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-20-johan+linaro@kernel.org> References: <20230213104302.17307-20-johan+linaro@kernel.org> MIME-Version: 1.0 Message-ID: <167631724001.4906.10785773178715748748.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?1757712299252540160?= X-GMAIL-MSGID: =?utf-8?q?1757746192139616770?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: f743f54fa8d2bcb3f2891b783687d91b76a144f5 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/f743f54fa8d2bcb3f2891b783687d91b76a144f5 Author: Johan Hovold AuthorDate: Mon, 13 Feb 2023 11:43:01 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 13 Feb 2023 19:31:25 irqchip/mvebu-odmi: 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-20-johan+linaro@kernel.org --- drivers/irqchip/irq-mvebu-odmi.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-odmi.c b/drivers/irqchip/irq-mvebu-odmi.c index dc4145a..1080915 100644 --- a/drivers/irqchip/irq-mvebu-odmi.c +++ b/drivers/irqchip/irq-mvebu-odmi.c @@ -161,7 +161,7 @@ static struct msi_domain_info odmi_msi_domain_info = { static int __init mvebu_odmi_init(struct device_node *node, struct device_node *parent) { - struct irq_domain *inner_domain, *plat_domain; + struct irq_domain *parent_domain, *inner_domain, *plat_domain; int ret, i; if (of_property_read_u32(node, "marvell,odmi-frames", &odmis_count)) @@ -197,16 +197,17 @@ static int __init mvebu_odmi_init(struct device_node *node, } } - inner_domain = irq_domain_create_linear(of_node_to_fwnode(node), - odmis_count * NODMIS_PER_FRAME, - &odmi_domain_ops, NULL); + parent_domain = irq_find_host(parent); + + inner_domain = irq_domain_create_hierarchy(parent_domain, 0, + odmis_count * NODMIS_PER_FRAME, + of_node_to_fwnode(node), + &odmi_domain_ops, NULL); if (!inner_domain) { ret = -ENOMEM; goto err_unmap; } - inner_domain->parent = irq_find_host(parent); - plat_domain = platform_msi_create_irq_domain(of_node_to_fwnode(node), &odmi_msi_domain_info, inner_domain);