From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50CB2C4345F for ; Mon, 22 Apr 2024 07:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BlWpYKWUrBz/NyIWf3DkAbBq6EhXDaV2Emyh2PuZpKQ=; b=TeI1sUVzoIuEnO EfDNhP6yNrSffKssgZmL1OzOleqy5ZJE626xdjiHRyJb8uMB2aKnROuTF80vlkODU8lFp96CIzUSu SG9n57lWd8WKYckBRbsZseT/TyndojLe2fcjjyd22y5AOPK9ZYLZuZv95vyq+3wgyn2mB1ac5B/02 uF5C88VS8cZuqh7LYbMgIJVU/FFNP2dOaOYucRbxgUuy9Kew2XLuKbezhNnHwt0jL35iVERlCu4sy rCPjI9waeTGg/kEkS5poV9jowil44Hb3jDo4qRF7zlAVPg0ZgtO32DdrxjJcWBro95frJJO4+59bi IxeYTj4SD3qHaxUzkBFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryoKb-0000000CTwh-3ATB; Mon, 22 Apr 2024 07:43:17 +0000 Received: from fgw20-7.mail.saunalahti.fi ([62.142.5.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryoKW-0000000CTsW-3zeo for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2024 07:43:14 +0000 Received: from localhost (88-113-25-208.elisa-laajakaista.fi [88.113.25.208]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id f64f7c0a-007b-11ef-a9de-005056bdf889; Mon, 22 Apr 2024 10:43:09 +0300 (EEST) From: Andy Shevchenko Date: Mon, 22 Apr 2024 10:43:08 +0300 To: Bjorn Helgaas Cc: Vidya Sagar , "Rafael J . Wysocki" , Len Brown , Will Deacon , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Frank Rowand , Thierry Reding , Jonathan Hunter , Krishna Thota , Manikanta Maddireddy , Vidya Sagar , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH v7-incomplete 3/3] PCI: Unify ACPI and DT 'preserve config' support Message-ID: References: <20240418174043.3750240-1-vidyas@nvidia.com> <20240421190914.374399-1-helgaas@kernel.org> <20240421190914.374399-4-helgaas@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240421190914.374399-4-helgaas@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240422_004313_254339_B470CB45 X-CRM114-Status: UNSURE ( 6.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Sun, Apr 21, 2024 at 02:09:14PM -0500, Bjorn Helgaas kirjoitti: ... > + if (host_bridge->dev.parent && host_bridge->dev.parent->of_node) > + return of_pci_preserve_config(host_bridge->dev.parent->of_node); If you need fwnode or of_node from struct device, please avoid direct dereference, we have dev_fwnode() of_fwnode_handle() dev_of_node() -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel