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 61220CCF9E9 for ; Wed, 29 Oct 2025 08:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=Fl8d1QOixuFfqARh/pwDGdVGrkbcUy//38P9kmQip5I=; b=JBp0Glh2LGb1lmO6+MLq/d91EZ +tlc3ZBIYZJia2bs4m5Ch3q0i4v3WYoVfnSGtceoQtjOynGSPfJ6TDY5eLQN2MJ2+ngUCOJQSX9F5 fMW1C554o+Qz9hCRzq7RCnx3XCFgl+owXZrDjFuD46EOFCgPeJ3ZzBQ1wenCBfpITUivKiPq5VVzD sGmuCILpgjlujn0VHsTBUzL69bDr/+XXS/8i37rTzWDtUhPzrIBsVxyca3VmWpOujHjG0ikRe6UEg /VOA5RDwbNRz50mBJAKS3MfWpnBUhT+9V4enxbx6JFrlOJXJ2I43rGmIgyRcZhpw3L3l0EXvyb+1s QYVrosPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vE1C3-00000000CTX-10xw; Wed, 29 Oct 2025 08:06:07 +0000 Received: from mail-eastusazhn15011021.outbound.protection.outlook.com ([52.102.137.21] helo=BL2PR02CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vE1C0-00000000CRq-3huh for linux-arm-kernel@lists.infradead.org; Wed, 29 Oct 2025 08:06:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JHL1OZSXEmSRqDVuP3Vij+GmNEgLlIVmfL9GPrx/5pFYhYfa+FuRYWpuTvN6zMjTb7jNdW+fGc1OFRGfVaC+QE23l1nJmwsuUNc++D/QE4NXxyzq6WK5QpAl/Esv8QlGweo4P6+Thwt4yns5Bc8sTM5Swhis//n0X551cQvnMbdHk7FpQdhRHJhPHmxpNUeTu87F9cGJC+254O6fKwNis+2cl1CRg4r26SjJnYBJjnhoGIU+9tjcqeTFlcYWL4+uzgNEq0Q0UNQw0WUjE9AHbjaPviVIpfFelw050z4iq7M1Cnvg1tYJPkDd8mE/Uiu1OVWWZyt+U9kM50UprqSP4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Fl8d1QOixuFfqARh/pwDGdVGrkbcUy//38P9kmQip5I=; b=EzMlsZPXNPcZ6Qi0FxR0JpxgC/bC7uN9kdsoQMYnu6F2pEgoN24TKKTAwgHR1CGTIk35IGQwqlPm/E5/OeQJ6YQJOS/2/sMr21l7p+wxdisW0vF0dTyXPDYMgHJwU01uNE/fRGtIHj5y56xW9b13Gdn2SvewVVRLbV/b6awIyQnJMU0mn9Ce21HB/+LfF1Njh7TZ/TOsgacmWZ7ZUD1SW3xd+8UACdxWNlCq3vvrS18fEg3+UoAV9XkHIV3EIMkdSUJI143QMyuxPBBc6YbqFwUqGx5/e5bGBSHIb/S0uyOyg4lo7P2UZ8j8IDKvJMPnI3eIuzY1e7Pr7+xWdeaTsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.194) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fl8d1QOixuFfqARh/pwDGdVGrkbcUy//38P9kmQip5I=; b=WtM+2WQw1D+cbfaT3D6wr8xhFcZG7j7VGn/qCGxfxJ9HGABCfKzXqMmCSu/ghcyOvVCkMxh7Rs+s1beRd9VxU/ToiBgeMLDDfwpLoMvpjcL7m10HNO//kdqqebF5m+3igIuy9JijwPmBNHMqXIebEIEgbFKWYSSkpieyCfjQq+Y= Received: from MW4PR03CA0239.namprd03.prod.outlook.com (2603:10b6:303:b9::34) by SN7PR10MB6498.namprd10.prod.outlook.com (2603:10b6:806:2a5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.19; Wed, 29 Oct 2025 08:05:59 +0000 Received: from CO1PEPF000066EB.namprd05.prod.outlook.com (2603:10b6:303:b9:cafe::5b) by MW4PR03CA0239.outlook.office365.com (2603:10b6:303:b9::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9253.18 via Frontend Transport; Wed, 29 Oct 2025 08:05:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.21.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.21.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.21.194; helo=flwvzet200.ext.ti.com; pr=C Received: from flwvzet200.ext.ti.com (198.47.21.194) by CO1PEPF000066EB.mail.protection.outlook.com (10.167.249.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.10 via Frontend Transport; Wed, 29 Oct 2025 08:05:58 +0000 Received: from DFLE207.ent.ti.com (10.64.6.65) by flwvzet200.ext.ti.com (10.248.192.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 29 Oct 2025 03:05:49 -0500 Received: from DFLE214.ent.ti.com (10.64.6.72) by DFLE207.ent.ti.com (10.64.6.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Wed, 29 Oct 2025 03:05:48 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE214.ent.ti.com (10.64.6.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Wed, 29 Oct 2025 03:05:48 -0500 Received: from toolbox.dhcp.ti.com (uda0492258.dhcp.ti.com [10.24.73.74]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 59T85aXf3704660; Wed, 29 Oct 2025 03:05:43 -0500 From: Siddharth Vadapalli To: , , , , , , , , , , , , , , , <18255117159@163.com>, , CC: , , , , Subject: [PATCH v5 1/4] PCI: Export pci_get_host_bridge_device() for use by pci-keystone Date: Wed, 29 Oct 2025 13:34:49 +0530 Message-ID: <20251029080547.1253757-2-s-vadapalli@ti.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251029080547.1253757-1-s-vadapalli@ti.com> References: <20251029080547.1253757-1-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000066EB:EE_|SN7PR10MB6498:EE_ X-MS-Office365-Filtering-Correlation-Id: f178eb3f-6722-4f43-374d-08de16c1fe73 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|34020700016|82310400026|7416014|376014|921020|12100799066; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?8dKQ5MT9J5XyqKrffKt0on9s2XRO3NSoahcn8CZUNtST1ymDGSIQozdwTPb2?= =?us-ascii?Q?GDEvkjKkx7ax4zb7pv33eHZdGHUZlqXQ5M5jocVkZ/SUMzacCQun7z0VCEid?= =?us-ascii?Q?9gfmjsSjcDiLmsYqwA9GArsDDT6Dx5PLzatObOhCAN1+hCkmbwjHGELpNhDE?= =?us-ascii?Q?3NjXD6fHIY4L6A3bU7uyIVe2AAxNC9tBKbbcj2tAXOyORbR7o0lz5tX9hSm5?= =?us-ascii?Q?uW4Il3TFTrrs9O8247ch0DXeYtEcDWMcktVGmZuVwfZBtc1nt3/nd1HNxXtU?= =?us-ascii?Q?9OFTRLMAD0jiy8zJX3OI6svAl6K8/w8n+iHa48GBW3Pho4KIRiTIgdzDTseg?= =?us-ascii?Q?S0knzinE3sCevn39Qcw1F9z+hQ7P7jccmv+DAbGKsr3VSWcEKGgjPW9jaXym?= =?us-ascii?Q?RNg3/0wTrU7oeut3Nao/s8n16ZZ4DA+nuCH5Djs8zEWaA8ti9NLc67BrG+33?= =?us-ascii?Q?2MHkAAzytfPbOy5NezkH8JpXuENiXeFXnjPZNpbOAc8ybJhi37ZYMbwVfUoe?= =?us-ascii?Q?Rrp0LJSEJGBM+XYn/5Ko1SbAVR1X8nTnfydi5zbb5WoebOWeETGqqZREeRGH?= =?us-ascii?Q?apQRTmILB8HhG8I1hRaFHPNpblDuePZrUEJ2eCDd+Qazesqj6k2omiyDoKyI?= =?us-ascii?Q?vgVnrZ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Antispam-Report: CIP:198.47.21.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:flwvzet200.ext.ti.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(34020700016)(82310400026)(7416014)(376014)(921020)(12100799066);DIR:OUT;SFP:1501; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2025 08:05:58.5824 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f178eb3f-6722-4f43-374d-08de16c1fe73 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.21.194];Helo=[flwvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000066EB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR10MB6498 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251029_010604_926309_B695DEB1 X-CRM114-Status: GOOD ( 10.07 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The pci-keystone.c driver uses the 'pci_get_host_bridge_device()' helper. In preparation for enabling the pci-keystone.c driver to be built as a loadable module, export 'pci_get_host_bridge_device()'. Signed-off-by: Siddharth Vadapalli --- v4: https://lore.kernel.org/r/20251022095724.997218-2-s-vadapalli@ti.com/ No Changes since v4. Regards, Siddharth. drivers/pci/host-bridge.c | 1 + include/linux/pci.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index afa50b446567..be5ef6516cff 100644 --- a/drivers/pci/host-bridge.c +++ b/drivers/pci/host-bridge.c @@ -33,6 +33,7 @@ struct device *pci_get_host_bridge_device(struct pci_dev *dev) kobject_get(&bridge->kobj); return bridge; } +EXPORT_SYMBOL_GPL(pci_get_host_bridge_device); void pci_put_host_bridge_device(struct device *dev) { diff --git a/include/linux/pci.h b/include/linux/pci.h index d1fdf81fbe1e..b253cbc27d36 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -646,6 +646,7 @@ struct pci_host_bridge *pci_alloc_host_bridge(size_t priv); struct pci_host_bridge *devm_pci_alloc_host_bridge(struct device *dev, size_t priv); void pci_free_host_bridge(struct pci_host_bridge *bridge); +struct device *pci_get_host_bridge_device(struct pci_dev *dev); struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus); void pci_set_host_bridge_release(struct pci_host_bridge *bridge, -- 2.51.0