From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9030250288 for ; Mon, 22 Apr 2024 07:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713771793; cv=none; b=DCOtjB8VcTpXsBaWJxXlnjgt9To807whWsltft1VaK+UK0zdowF9saXjwXCvXTeOkck1QB6R1SPjQvyxoARR6gKrNErXXyH/sDiSwpFYsObA1CwPcQdF5SXFOzRWxyu3IozsmSUNZxrx4/kEmMpY8dkwY0E2npvkd8h2wBqEdss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713771793; c=relaxed/simple; bh=ew5dSgQMfS9IwbBwrIa9E4pKL0iPTREwTY8/gbHfluY=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fjtJNnJta4xiUnqJKhUUYykBXiIljo8/UlFZfrU6Ig0xlkManTioTSQz4p2tnb0EAiCKUgbD8FZr8xSvjCpOJLAnoWDlqO3zXmFCdgkoMGaCC5c3rDNL701IlhFQXQ2p0ST2sgir/NXfwE1cngpmAvH+Z2KO14bjsFd+DgCCt1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com 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> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240421190914.374399-4-helgaas@kernel.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