Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1852507lqt; Sun, 21 Apr 2024 12:11:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/dNEKSJT+LW8UrOFPyTa0lSntg12+P79T/o6p+wXtCgkbHo93XnYd7G+J8U8vowJa4c405roihycI5EI8+Cm5XwhO2eqzhCDZlm8iBw== X-Google-Smtp-Source: AGHT+IHs/g/69gxroTYLrWrQGwXn6b4N2u0WF7jrqk6eTRgeuDK2lvq45JHZk4LkJW7OMNmC5SHM X-Received: by 2002:a17:903:120b:b0:1e7:8686:c37b with SMTP id l11-20020a170903120b00b001e78686c37bmr11816057plh.22.1713726672586; Sun, 21 Apr 2024 12:11:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713726672; cv=pass; d=google.com; s=arc-20160816; b=tdikMHfx1P9LOIX65TZIWNkGzaRDS4C093OSh0mIadoh2hEoM3966rqVmlB/xMlvas GHapLHz2y/O9ObZrENGx2XCy4jWy+vIdGydc5+p19PgEQhDEClPGQRs+LmBYgdNRndKc Dvz00JgQJrfprPQFzwgxes0L5dJbFRHVIKTP4sUz/pU2nykkak2rJ1nXhjUlLh544UDT 63UGlYnUvbc7BE5au3Y2+M4+gZpXkqszK2VzMu6I3oQuE2QQcd8WfzdiRQxclbZRjSZB kn3Zo7lhKdf8JqRPV/hkLO8kxZJ4tXXXWVdu27yG1lQdKBZEhHH+Ig1AmeWMFKkIpzFR ROug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ETzZdFNeswq3C+uxVbR7/XtAVRenBskoivLhBRQfgms=; fh=SjyyLJaug74WeH+YBfITVzrTrUuKP2sS83jRs9MsakU=; b=i9ZEVZvT8aaS3lT0fFx++W1GbOgnRoH7V3QBKVVdQ0Lj6842N5qvD2fMKNo89E9Pvs iX2gwDqr+cA61xaqyQSba4YS/iszHitQBZrqLIaCr8By8Qfp62ZhmY151RPr/G4FK7mj XJXMXxVYlU1yCOhfK9k+EOFmjt23sY2V1zYAo3jVd7zgHsNYhuEOyGN0GMeJOKxPJBNJ cmAN+JgLJ9pDwFmK65NRvwss2beFKKD+GzqfcfKtIaz4VZIFAGH1SZq5svVf6RVKENpL C8IrwKBckxMpWACkRvAE8DPMSK7cggm0rl/dyjoiU3XDkCFsUUoJz9qsGBd56W24sgON qWhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i5oI+s6n; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152592-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u17-20020a170903125100b001e7d3d37eeasi6539005plh.507.2024.04.21.12.11.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 12:11:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152592-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i5oI+s6n; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152592-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4A595B20F5B for ; Sun, 21 Apr 2024 19:10:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 925284594A; Sun, 21 Apr 2024 19:09:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i5oI+s6n" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AF417446D6; Sun, 21 Apr 2024 19:09:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713726573; cv=none; b=QHvcG8OY17JlhTgGn9clQK7f2BfwmRvqYZ8xE2KlkQzkh+9WPOrXourKVvUy+Dd2At8vBrrCcEPUjec6mEO8DrrQjES8o4L92Q9MyL0/qfyRx6S/ckfiwuN3ng5pKCZ7EsOZ6agIV0hv7IjKfqIwUznHCixPoSN8r78RYoSePb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713726573; c=relaxed/simple; bh=X4v6M4Hrc9fFqCwB6oJpOXB8AHDIlZvB7tTwVOjiIBQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VEf+a4i6mjXBhHQtencuGd6/Di7h7tGlCPlLTHxJ3Sg+AyR/CO5rxoZBIrk8elPncIOBQcRneFyNei8u/W15zFS278Ea1Q/evBteFDRytb9QiMch3Eo/ud9nyoFX3Elke0Zw8lZgUKoy7xCZMjws6ReYlvk3lgcsjEPIwB1Lvh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i5oI+s6n; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA839C2BD11; Sun, 21 Apr 2024 19:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713726573; bh=X4v6M4Hrc9fFqCwB6oJpOXB8AHDIlZvB7tTwVOjiIBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i5oI+s6nKWpN0z3IPZBfeH924VIQIwoJZRC9V3Qr/WQ77udlfzgw42ev297ij29eZ OSZ0HZi3BRcBrYG1chpvFn9oKKB6jDegDUgL4KDux2N6SsBWgwZo3vy3NGn0tIJs1a YOXYRpuz0d+90tTAigwSsaYqZgDO/yX6BOG+HKqHjqTUVHRKjtX+JUrABiJz4+vpS5 SF12280Wl6LBSxX3uJvhzgyBLrp55BbaTjVvs1E6hYuuf0IE1hraZf585B8IQ6evOz NcQOdShN+JnZCKO/xmFNHuSTxRaoB7280FLU5rPW9XZorQtD1MWa+HO1xgyiJgrzXX wnevBopS+8bFg== From: Bjorn Helgaas To: Vidya Sagar Cc: "Rafael J . Wysocki" , Len Brown , Will Deacon , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=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: [PATCH v7-incomplete 3/3] PCI: Unify ACPI and DT 'preserve config' support Date: Sun, 21 Apr 2024 14:09:14 -0500 Message-Id: <20240421190914.374399-4-helgaas@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240421190914.374399-1-helgaas@kernel.org> References: <20240418174043.3750240-1-vidyas@nvidia.com> <20240421190914.374399-1-helgaas@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bjorn Helgaas --- drivers/pci/probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index ee086d029450..2c232c22d6af 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -894,6 +894,9 @@ static bool pci_preserve_config(struct pci_host_bridge *host_bridge) if (pci_acpi_preserve_config(host_bridge)) return true; + if (host_bridge->dev.parent && host_bridge->dev.parent->of_node) + return of_pci_preserve_config(host_bridge->dev.parent->of_node); + return false; } -- 2.34.1