Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4458258rwb; Mon, 21 Nov 2022 07:51:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7TbfgZFe9EbvN5EdEYU3RuCG7mbPDWU8CVgLMJvEZkpFYEuyKwnPBCwyzFYxM8EGdlQ+lB X-Received: by 2002:a63:1618:0:b0:476:e4fd:94b8 with SMTP id w24-20020a631618000000b00476e4fd94b8mr18693036pgl.191.1669045861960; Mon, 21 Nov 2022 07:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669045861; cv=none; d=google.com; s=arc-20160816; b=BxB9Hv2kNb6Z9VDEgeMkmj10AMgyCy8wsNgdJtobCBbOcVptAVVUICSMj9pYL8+3NZ fh5+Gw9ZenlU2jsUZfrkt8zf4nR2+XZLcOVzEFPOPwWES9fIOTyWAubrObh+3rdeHloC X1jJ1ALHLo23GDvroK5nJw31Mr+SJIdQMwhlH5kaoNDUv+pi6+CpbVyEG8ErDay0Lh0d KoaS7Ia1sFft9xV1DEe3fZreYTHWwL+1mgnrKDjUq6N7+BNN8hG758qQ9Ji4ua3DWQYK iOifAYHRqLLfxa/aCPVn3m5r5E8n62YTxNtENhe7sXx/8YHnzPUqDjPZX82n/XEnVt+V uiXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=xdXQN8DRlFx/ul31qn4JSIb+1+AWkLgJWGGnxBYyOqY=; b=kiqMx3vfGLUFiyJ5yXDAoTt8O4vKCT+fZ4sFHomP521it74hzNy4RAhyl29Bjr7haA UtLRWttztFUUP+mzNcgp6YcbEgcmmEMzrnIp7FLUxExzQOR50GqDpNPOKz84g0s6MUdG xHyxIX0UQzIf4sFk7doWWWpqusBLDY8rwMmqp6zhtw2e+RdaT9d+vF8YBXo413TtTFyE DdkhDQuYI3/JyNMWLw+nsvXM0Ym531q74aiSCbnUtnLymidDKVhygj3rK6AP2poiFbY1 QRcsrXWLOZ0pmPf/4P/m9x+2hY3NQ0id27GoZRmN7NMSY1YXjSeJTesk9IQ8M/joZr+r rN2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RBGAMv2G; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc15-20020a656d8f000000b00476e63cfd11si11795908pgb.468.2022.11.21.07.50.49; Mon, 21 Nov 2022 07:51:01 -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=RBGAMv2G; 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 S231403AbiKUOjJ (ORCPT + 91 others); Mon, 21 Nov 2022 09:39:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbiKUOhz (ORCPT ); Mon, 21 Nov 2022 09:37:55 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AD8F776E2; Mon, 21 Nov 2022 06:37:55 -0800 (PST) Message-ID: <20221121091326.824201400@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669041473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=xdXQN8DRlFx/ul31qn4JSIb+1+AWkLgJWGGnxBYyOqY=; b=RBGAMv2GkppARAoYghD/kjTwWaU4eeqxK2Ubd1SizNBhAVm2TXOrkaFFnaNXfr1KZeNxD+ 52VAh+N+AZDFLoazaVlHlG6JbwZ5YtCZ8aNwdxKgTNpHuOB/UtHaNGFqMOZeFICUjYv2KP vNEb+B0KlQwGsX51jstKGCTVczJ+jV6kqzAH0QxPWObSQZEfHQh5RJRmDFrR3hY2oTntED ymtALNUY8UxS9YYtigjuKBhO7h/tz+S0PMogZ+O32cuojrRsiZ/rsSh/HIzvvtOtkpV4SL 0VSpgdE2WbQQ0FZGyHfDKDY2FGvCF9zZ1JDembFs3lwzluzpBAUwq0JWBHEUJQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669041473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=xdXQN8DRlFx/ul31qn4JSIb+1+AWkLgJWGGnxBYyOqY=; b=wER6yTa5fecL2bNV9tiYHP4MwsBQhfok1JJm+pRrG71fCNhiW4druzH9vfv4qO9rONscXQ 4wXzqJeZrLjAceBw== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Joerg Roedel , Will Deacon , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , Dave Jiang , Alex Williamson , Kevin Tian , Dan Williams , Logan Gunthorpe , Ashok Raj , Jon Mason , Allen Hubbe Subject: [patch V2 06/33] genirq/irqdomain: Add irq_domain::dev for per device MSI domains References: <20221121083657.157152924@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Mon, 21 Nov 2022 15:37:53 +0100 (CET) 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 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 --- include/linux/irqdomain.h | 4 ++++ 1 file changed, 4 insertions(+) --- 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;