Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6338603rwb; Mon, 5 Dec 2022 10:52:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7b36J0QAGCPDT+yLYTOYub+Figpr1t1VVIY9/menFys0N/xkJP7iYm7VxTmyPvdA9Vdq+e X-Received: by 2002:a05:6402:d78:b0:46b:a177:9d84 with SMTP id ec56-20020a0564020d7800b0046ba1779d84mr24204711edb.134.1670266320194; Mon, 05 Dec 2022 10:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670266320; cv=none; d=google.com; s=arc-20160816; b=DQiWvxDsVn7xBkQHpg3FnMuCBzPC5a43v82AUcAaKVzUBB+2vxPWscd2j6v3+2EcZV BzFbCoJ74joypNm/L4l2tPugdb9ZmeVAoIVcPzC0RWu1dCmHJ1VRmL9cL6Ew33UV8oOG fqUA804S44SIYf8Jzz5bKSUjbDfSYJLqdHdqAVJ45iJ15jrHcQ1miLQiDb0Z0FMBy4Rw RH10FE2aRiAj4/9eat7OJjAc3KqMWlGDcxfDvoTYYz+fADo33Oa1USqVGblE9MNLDgmB beBpprWXY9lVtcYXHlAGCB1lGI1t/FSLuJcB8fDxnLkUelbaf8dhFbsJ82Hgq3JI6qWv CMiQ== 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 header.s=2020e header.b=KEUDvDH9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a056402511400b00462e628189asi175273edd.304.2022.12.05.10.51.40; Mon, 05 Dec 2022 10:52:00 -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 header.s=2020e header.b=KEUDvDH9; 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 + 81 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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;