From patchwork Mon Dec 5 18:25:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 29845 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2409331wrr; Mon, 5 Dec 2022 10:28:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6w9GJb2qyt2KACrEKbITkVMQLYsVlchveqPPd1CuCFP3IbV7FI5lE6tY6LfGimLfyBCN2d X-Received: by 2002:a17:907:a801:b0:7c0:e060:e819 with SMTP id vo1-20020a170907a80100b007c0e060e819mr7840183ejc.763.1670264887561; Mon, 05 Dec 2022 10:28:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670264887; cv=none; d=google.com; s=arc-20160816; b=SoqIe0jt5XpZnLWcCzlw6Q/9My0bj10ChAd1YK3M8eYhioy07rzhd1e35QxCPvelVS mqzfQ5Rt7TemBGZD7ODgxoamzA2decwiZIqKDkI98sN2mByfO2yBXrGqfTct1mN8mWru ZtQl1LWPUMe/vn9FPxbBFjuDYm7sKb93kt1b0/H3bQVYLPJK73iGH5A5f2SV8Stot8n+ qy44WJACy5aaYO3rORzpGAuceejzasCjJDtlAU7hsDUdatDozooGbTTI7DBzvz4x5ynb /oyRPqw3kpPIXyMopIky0DiznAopxMICIKem10i0uNB0Jpi/Y/5dy2rFxsDf0+dCDY7N vJqg== 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=WM8EONqxHEtDCDP/wm7zqqT1HHSVasmF5/3zb4tuqgg=; b=cSCp8aJQGQS5oIkRQFLhd3LJHgpiNUp7Wear0bR8sbE6YJ+vSDgTuSM+fnY+QOEy2C K0jbUhjgaqcnjQpI16xNnEyv3aJYrRVzNIgzG94J+1mwfev1K6y34r9Q7APYO2kCCrCz F83FqmeIG7pZ2Jg4JoERoinpY7aF55Zjc+jPmHw1TGyj/Z/JK8ZdXEwrwVJBYLW0tiT1 LY8zYuNci5X7SChb4EoxWBHKKicWbDaxpfzF12s1RFYJUmvVdDjehB+I4vVAWiCzTTFQ +1OzJMJ6wLuvwpZuuvCNg+C4EmYxwk2cdYUozn+hSXqPs2y1UVqagKBgTT653+UU2H6e LjtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uImeh7S7; 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 tz14-20020a170907c78e00b0078d3b940ec5si10113513ejc.373.2022.12.05.10.27.44; Mon, 05 Dec 2022 10:28:07 -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=uImeh7S7; 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 S233465AbiLES1D (ORCPT + 99 others); Mon, 5 Dec 2022 13:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232460AbiLESZT (ORCPT ); Mon, 5 Dec 2022 13:25:19 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45D0720F4A; Mon, 5 Dec 2022 10:25:18 -0800 (PST) Date: Mon, 05 Dec 2022 18:25:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670264716; 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=WM8EONqxHEtDCDP/wm7zqqT1HHSVasmF5/3zb4tuqgg=; b=uImeh7S7NUE0PTs4Aa+TkjcmrHwg4hwwGECVZSk9kbXZky7BqjTixN0ObmJ5rcaifFMnNk fXHEcCzh5CXHVrb3dQnd/jbEYpxVQcnpoVmO4wJ4r1/uBiAYvYbaKxVHShpnkZ7ChkdQqL L/N3SIWDEWWx/6M8XnZiAdBplhqdA0CHjMGsFVPCg4S36nq4+2UkNYfv+/d420GgEJoQ9t Thj/DnbTz6eiMI4og2rIOLw+D/NHJ8OMir2pdzPXNZMzkmBoVLoFbdYexPywtoqNYK5jah 0pMfJygPSMAy0AkKKdPnc6qmbnamtTiX3PnJvkiQgwqRD2sM//c+7W7KztNRGA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670264716; 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=WM8EONqxHEtDCDP/wm7zqqT1HHSVasmF5/3zb4tuqgg=; b=KEUDvDH9OT0UxgMTGYRoBfcEkmMwW9BqjSg065NO7GiMhhobnWzVtKUKqjGWVq58pd56N+ ukeev37gLxMrilDw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq/irqdomain: Add irq_domain:: Dev for per device MSI domains Cc: Thomas Gleixner , Kevin Tian , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124232325.618807601@linutronix.de> References: <20221124232325.618807601@linutronix.de> MIME-Version: 1.0 Message-ID: <167026471595.4906.7972815409340483633.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?1751399674645608307?= X-GMAIL-MSGID: =?utf-8?q?1751399674645608307?= The following commit has been merged into the irq/core branch of tip: Commit-ID: 4443664f298d1a2cba25a2e48d53b78f4138209b Gitweb: https://git.kernel.org/tip/4443664f298d1a2cba25a2e48d53b78f4138209b Author: Thomas Gleixner AuthorDate: Fri, 25 Nov 2022 00:25:54 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 19:21:01 +01:00 genirq/irqdomain: Add irq_domain:: Dev for per device MSI domains Per device domains require the device pointer of the device which instantiated the domain for some purposes. Add the pointer to struct irq_domain. It will be used in the next step which provides the infrastructure to create per device MSI domains. Signed-off-by: Thomas Gleixner Reviewed-by: Kevin Tian Acked-by: Marc Zyngier Link: https://lore.kernel.org/r/20221124232325.618807601@linutronix.de --- include/linux/irqdomain.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index a668cc0..a372086 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -132,6 +132,9 @@ struct irq_domain_chip_generic; * @gc: Pointer to a list of generic chips. There is a helper function for * setting up one or more generic chips for interrupt controllers * drivers using the generic chip library which uses this pointer. + * @dev: Pointer to the device which instantiated the irqdomain + * With per device irq domains this is not necessarily the same + * as @pm_dev. * @pm_dev: Pointer to a device that can be utilized for power management * purposes related to the irq domain. * @parent: Pointer to parent irq_domain to support hierarchy irq_domains @@ -155,6 +158,7 @@ struct irq_domain { struct fwnode_handle *fwnode; enum irq_domain_bus_token bus_token; struct irq_domain_chip_generic *gc; + struct device *dev; struct device *pm_dev; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY struct irq_domain *parent;