Message ID | 20240508174138.3630283-4-vidyas@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 4A728C04FFE for <linux-arm-kernel@archiver.kernel.org>; Wed, 8 May 2024 17:43:05 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=L+kLm0essh9wWf9FC6EKXnJXhaL8zt5A9OBuSgHl/QA=; b=gkwmPQ2Zb8geIH XGczzSMvmXorPkngks2TJ+JxwoNbTgQvp7cTLizdyb793Vn+zxhL0YgpXbQzzivzXkxiQGY8Fooj6 8klPe7aWmODK80UQw5dKz1aIlMaUAROAUTuHlqsfL7TFTIWKQ5NVVZ1zOCUzoyS+Z4Aj6uV2bb+5y 75HUl0MQHX4KGkkoYShrMdiF1I8O/2YWIL8D/cUGMeaX3LB4OUJOi2mbbDqwuUiFLrbb10ZIiGl+K tNfrdowgac7mAR3fRIg2MFm4TylwXdEt/ZRLTM6DZs/id8dmq/+t/Oiw6o0/ixkmaP/VTDPRc5Ouy 0BIhXWxE5sumes/P9jQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4lJY-0000000GPfD-32oR; Wed, 08 May 2024 17:42:49 +0000 Received: from mail-co1nam11on20600.outbound.protection.outlook.com ([2a01:111:f403:2416::600] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4lJR-0000000GPZL-0hUV for linux-arm-kernel@lists.infradead.org; Wed, 08 May 2024 17:42:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ju2FODLadTs2AvxGFZsRqnnEBpoKUxPOSqI7YWWhwGcn7SKKe4U7ZsStnYEGBfRluBCW3rsbf0w3AEoOHfXbMyKIJTuaX/uMB7SvgGbyYUceow5QWAoyDvjRHHR1Isw51w9Y7jJ2HIN55RsGWX/dmBmPax5k2+Me21+fPkFGubfOlp3g1kpi2eBGveygtWGsoaHUCcWQkHTAzCXodxqccNpIIAZC52Yc9qZKjfEHkBK4IxslbkjOiFx/IU0DEB4I9qdmr6WLBqvVPN3HMPYj8GA9YI5JiHKW48UjC9LgKGDBEcFnlw0Siq4lXYD0XnaiTiH7Z8FOX5dLblwljouupA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LKNpLXsBUlqmtukWmZYFvtj8c+Uu5VQ/A05GblTLFd4=; b=YrloX+pTirrzkMogH8wVYBnb89X7NKbv/YWCbae9MESbuqOdoBXFUJBDT0qA99i7xh4MMHD9DYzZVTk+COxLWSXtERCU+Q7SBATdcREIovSqrNfuXI366/+8K90B7kIKZKD5OHv3nUMi7b2nmPKRqx0DK39cd//yQwm+AUAJZxNPhmsDAr16CaPQcPDBPs3HBiYUA/hBDNm6LhMETs2x5MSa2M0UaRQugrv8W99fxWmvCHycw/NFJDDW5Ely7Vh5Pu7ag26/sdJUiSlqMemfYCyqpFPFjLnrPp57u1gekQYQjAxBE9nAbJDx1a/xIwmlowO1i6I2wmw8pj7SM9nHiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=google.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LKNpLXsBUlqmtukWmZYFvtj8c+Uu5VQ/A05GblTLFd4=; b=G5/IzlphNSw1blfFH6emJYatwGAkADCEfV0hxZp1cVFpLr8nTbTQ9hTgFXxF7aX6w3IGq2uLVy7LQjp3tWFlQk3gLt5r8LDApspcKLg6GE75ackEhfGH1JqxT2bFvNuayePHsGU2RkZsINFQEGbiagwwdfIdk5erfCIEEqFK9xkRnJq346WsbT45rjdzVOL3S8lCS8bw9TCR0qObps3k7UpAPJJXAjPLTs4ZhHd4mfxATXgvN9/yOV991GupYC0CY/llbZ5eQFTMkku6kncW5XqUtx6AdVcESAqJBzK9vQHxgHJ3yfTD+859DcCcH0M4pebDZ3NYV+vQfpAeGa/19g== Received: from DM6PR06CA0003.namprd06.prod.outlook.com (2603:10b6:5:120::16) by DS0PR12MB8415.namprd12.prod.outlook.com (2603:10b6:8:fc::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39; Wed, 8 May 2024 17:42:28 +0000 Received: from DS1PEPF00017096.namprd05.prod.outlook.com (2603:10b6:5:120:cafe::55) by DM6PR06CA0003.outlook.office365.com (2603:10b6:5:120::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.46 via Frontend Transport; Wed, 8 May 2024 17:42:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DS1PEPF00017096.mail.protection.outlook.com (10.167.18.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.18 via Frontend Transport; Wed, 8 May 2024 17:42:27 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 8 May 2024 10:42:09 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 8 May 2024 10:42:09 -0700 Received: from vidyas-desktop.nvidia.com (10.127.8.9) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 8 May 2024 10:42:04 -0700 From: Vidya Sagar <vidyas@nvidia.com> To: <bhelgaas@google.com>, <rafael@kernel.org>, <lenb@kernel.org>, <will@kernel.org>, <lpieralisi@kernel.org>, <kw@linux.com>, <robh@kernel.org>, <frowand.list@gmail.com> CC: <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>, <treding@nvidia.com>, <jonathanh@nvidia.com>, <kthota@nvidia.com>, <mmaddireddy@nvidia.com>, <vidyas@nvidia.com>, <sagar.tv@gmail.com> Subject: [PATCH V7 3/4] PCI: Unify ACPI and DT 'preserve config' support Date: Wed, 8 May 2024 23:11:37 +0530 Message-ID: <20240508174138.3630283-4-vidyas@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240508174138.3630283-1-vidyas@nvidia.com> References: <20240508174138.3630283-1-vidyas@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017096:EE_|DS0PR12MB8415:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ff2a747-6f5f-48e5-9017-08dc6f863aa2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|82310400017|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: t4sc45athLZiTLhtOVR/vvWvWiFkgPnyTljw0pHXQpWQ4PzpmqiB38AOXu0dnYcb/HL5ENkuuSChPWdSQ5b4GkuMRs4KX6/ZDP1gXXV+xKw7KSjJA9F31L+7K9ttnM8bclrbDlOgicGdFyPTdAZVeZ9xR3HQDUkuI6iK4sSijaVnY8JmKt6cp6Nt7pHMdcqEMGXjNTVq4LRQ+8qJQnuj7Gz1WZ0hV0eWiOJcv1KpL+17b1Vh4Nn4+KOrUo736kB7ssvplc8voA/bpuDaBMmLjpiFRoUYLrKNQMJeovDSRVkRwRS+wK270W/nUmxz5dNBIggYIlp80WKOKoA2WSfYUyCyHHPk0/wpuOhfO9eMo6DC11+PKiRWMKIKRUhOJFRJiORR2tsLqPlwrRpaqNV2Ad5YJ6XC9Yn2WZE9R97And2Vau0nMmTlRi8Xr3FJmVtvgWaHGeoZb0+FPpd6yyNSnMPLpeOLZx/sUDKhyxxsVtwiR3E66SACaip717Zz4qlbGxhUofKYbYDYwn2yzMQuViQ62pj3ZejjdmRL6kbYvvGR2pk8/IsPSxYq5Rx14UDARunepuYiWpYnpTYg4EECPYYjiEm/7flii+iVrTZ+UugzXqgfT8c8vvGFC54XcprqAeK9yCjDVD9jIaUIAB4Acfwpfxuux83hbw8CA4OkxHa+wLsE3visgRviGkNmITOTyt6CUzWc9cWMRE6w4pOYlzjTe7idPFCoHLRvohKLeu9cS8PH0HjW5XvS1lqyfoF+DE5JiUDaT6tqPgeRyLrNbAxu5DEqJJpb178/DfIDMPo7mttP/K9kox+qYaE5M8RT+JBGXrRqJDeN9qLcRguxlkQorUV8KKUuRoD0Ex1MUi4UurFiuBjTeBgDh+uHuwwqbWKjdNk1h005HAKcKgOv9xx4LkQak/BqMheLuTmipqi/2P3MznrkgsNhM4UlKoNqBC8h5M28lVDOu/OG+dt11E71SwCU+e0wmmJSfaDe3i/asOWccSl5OYdc1PecqHdRfTFYGxvKPp/3GU2Mj1GgJgDlXWqUvw3nDc2U17GfcWRdaHYnFyoIleLkOVqKBvJr0lX15xRNTzW6QLSYbOYD25IKNp1zMipaX9OP3Q7XFdAaGzuCXjmL0+Bl0/ilpzi4f7/E4iguCta2pDW8iAqPpQAKwrmrQopIT/HgOcfDengPm9Xp1gQDeeOQCwuYN5RdmyJwREk1FYjZjGRpBFL1iAwY3cwKiVsWY8Fcc2KKOoo4I6kHsUCmIOu06bprfAk4hfCybX2XDOiQU40+SwPwVBFRquGr84eHrXtukN6clePcuXtQgiqCiTsNKyL1fwGr8LRr6SnhK/Tybia2YchtgUJPiqaL3TVnO1J0cnFQgejRQC1MluYdz1pXqwM0MgN7 X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230031)(36860700004)(82310400017)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 17:42:27.8238 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ff2a747-6f5f-48e5-9017-08dc6f863aa2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017096.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8415 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240508_104241_278203_DBDD639C X-CRM114-Status: UNSURE ( 8.72 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
PCI: Add support for preserving boot configuration
|
expand
|
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; }
Unify the 'preserve config' support across ACPI and device-tree boot flows. Signed-off-by: Vidya Sagar <vidyas@nvidia.com> --- drivers/pci/probe.c | 3 +++ 1 file changed, 3 insertions(+)