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: 56509 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2537415wrn; Mon, 13 Feb 2023 11:43:13 -0800 (PST) X-Google-Smtp-Source: AK7set+QhFbuNcz4fc4LHpg0GNVbR4tFJn8ZcttlzcrW53rj7IF30sIIfI/DLxyA1Txkv03zOI6O X-Received: by 2002:a17:907:7843:b0:884:37fd:bf4c with SMTP id lb3-20020a170907784300b0088437fdbf4cmr103030ejc.19.1676317392966; Mon, 13 Feb 2023 11:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676317392; cv=none; d=google.com; s=arc-20160816; b=tqyN31sfj9d8jt1jAG/qMcxSLOLbxq34+jAIKQgO1ynNRsYpt34yBQ7Wmn9lTvZY0x 34n8491NbiZjetSATmnS1odQzFm56gymPmxObD9mBz550aMDFAYSzEFuTiTbVgv1Fwj2 bUQrR72H7ctuZJHT7EpH0b5R2ovsRVIDpW1lNVcnLaanvRpGsE5DZwXH6bwMZAveFuq9 NnVQiawMV2eMrBrlYGvqK6I7ujxdC0vwQ4JIFao+l2Mf8CKsPtOsAziHXsHt2lRt1ec0 wIlrjS8HtpX37ht/XO6yGhIx2j5Zjus5lT/7PTYz2NRN+RK+1qvdnM159CgUMrKT4OZT FgPw== 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=i8PziP73urOkveqr8d0J8Qe0rv+ffjkFUHyRQ0oY9LE=; b=jGhvVJOyjYcxLETYYRWrSiSjtiR6Wo+vVfD5ZbKJe89dIKvdLzGNzAXiKsZgXwK73I Hij7vQ2Tv8589xUvWEsgj7+LKOB/+mIc7yuLpid+K4XwqC3L5DszFudGuQ8PnG9g/79I aYIejI3V6py9ekOGA4AIPUBUmnGW5c5pT/FRzwEjqnysn3dw3WPjaQ0Rgtranv8e4Iiu wkjpRpPqe/FQ7nwswSD7zWBcj9kER1tnXyWleO8H5pNnmcia1oiQel+9TF2LTVakZzN/ qjwLQqPeeTlrrxze1w8spdDy+GpcRqpnAKHFrvSIn+G/u5Pn+ZuDWvsgKpGIphyyZssB oR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FpxbEwvx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 gk6-20020a17090790c600b0088c98150395si6115129ejb.433.2023.02.13.11.42.50; Mon, 13 Feb 2023 11:43:12 -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=FpxbEwvx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S230370AbjBMTko (ORCPT + 99 others); Mon, 13 Feb 2023 14:40:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbjBMTkn (ORCPT ); Mon, 13 Feb 2023 14:40:43 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D2FA40F3 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=i8PziP73urOkveqr8d0J8Qe0rv+ffjkFUHyRQ0oY9LE=; b=FpxbEwvxMVz1TcdBXh1o0lKIYi4HTYJseaBbMvn5Uhoe1PaAsMEIoFQTL7mw6j5XIQ+RA+ 65JBTc1uDLSyQLbQAK9m+4pO61V84b1n5PXiQswU7tXIDEdmU/VSyXOhtI+e18dsda7gX/ 8ddkaHi94GjvEWcG7AsSKMNePciQ13wvjJpkoS9NAwcriuSnZHLqu8yxDldGz973Xwc0h5 RJ2m1owGgNo88Ux/J65SBNCHtxneLNm+f6ZRHeO0oc2TkIQb2IP+Gs3ZsP7lNQUv0sltjE 4ggHOOWFyhE3e2/qZgYXOFbSlDeKnsEDyEHylDTCOGiE/zBYl6xPuy8AkN49Dg== 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=i8PziP73urOkveqr8d0J8Qe0rv+ffjkFUHyRQ0oY9LE=; b=ZymUIJZFoLOsEgVWheioMHPGm8k5XVCxIdvvtBim+/pHUz2IjJ3yUgNyLygghshD+xqk7x 90TkCVyOq5PHfgCg== 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/loongson-pch-msi: 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-19-johan+linaro@kernel.org> References: <20230213104302.17307-19-johan+linaro@kernel.org> MIME-Version: 1.0 Message-ID: <167631724043.4906.10036207360902032588.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?1757712492944412479?= X-GMAIL-MSGID: =?utf-8?q?1757746186801730346?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 6159c470f812eab0a2f1900c70acbb3ca7b9e14a Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/6159c470f812eab0a2f1900c70acbb3ca7b9e14a Author: Johan Hovold AuthorDate: Mon, 13 Feb 2023 11:43:00 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 13 Feb 2023 19:31:25 irqchip/loongson-pch-msi: 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-19-johan+linaro@kernel.org --- drivers/irqchip/irq-loongson-pch-msi.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-loongson-pch-msi.c b/drivers/irqchip/irq-loongson-pch-msi.c index a72ede9..6e1e1f0 100644 --- a/drivers/irqchip/irq-loongson-pch-msi.c +++ b/drivers/irqchip/irq-loongson-pch-msi.c @@ -163,16 +163,15 @@ static int pch_msi_init_domains(struct pch_msi_data *priv, { struct irq_domain *middle_domain, *msi_domain; - middle_domain = irq_domain_create_linear(domain_handle, - priv->num_irqs, - &pch_msi_middle_domain_ops, - priv); + middle_domain = irq_domain_create_hierarchy(parent, 0, priv->num_irqs, + domain_handle, + &pch_msi_middle_domain_ops, + priv); if (!middle_domain) { pr_err("Failed to create the MSI middle domain\n"); return -ENOMEM; } - middle_domain->parent = parent; irq_domain_update_bus_token(middle_domain, DOMAIN_BUS_NEXUS); msi_domain = pci_msi_create_irq_domain(domain_handle,