Message ID | 20241015-pci_fixup_addr-v5-1-ced556c85270@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2075.outbound.protection.outlook.com [40.107.104.75]) (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 D76EB1F5830; Tue, 15 Oct 2024 19:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729019869; cv=fail; b=R+aR0gdrddySa1SEngPqXxpfe6q6N+OA+VvKtZxaU7IrUCi2hGZa3pTymTs/MXB5tIM99ww+tJ0m913FANHtuNpTX3lPWFPJbTxMx2iX8SURoAMWEqmgE0RrY3ndqCGMIr3UxRlWSeI71zJLZtIBQHgRzqi7n4G43Xd3SPtjYHk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729019869; c=relaxed/simple; bh=mpQkyAmcMxPoQ2LNPaVnnXkLHMMBxJM2cbPN+52/6qM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=dJmf4HnQ+cCIzF2p6p30y23ZdltTwcobT0lJJu4/rUVkMDkr1JhEpcxGe10+SXLXzhLJHYbH4mBxjq/yL/zNTRJbWDvaxoajY7CMiSuaM/CvhHyxtF6iqqBSF4jVQz6Uzw3fT+2J4P+2fzqmGYnAKtRt4RPpYKjPxTUqnr2cDVo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=jolDNz6h; arc=fail smtp.client-ip=40.107.104.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="jolDNz6h" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hFNUhd8schFXsNX9Aok39fvhPNg2K1Xndn34PFp+aP9zKYjgoC/m67qBVZjhhHjNh97Es36YOiOb1qkyorMdnqF1fP6nlI9ID1fT9iAt8eVJFnDDSe2QNvqewsmp3AqGdWo3jeuf8Buge1wnKEnzekyUGH7o7J5XYP8po2M/mHWzVcaPEXygW+dIX+JWiJkYXfCGe7inaPywM5vJapfLnqkd4xdKNRGfFKN2mgmOicgM57azTk4Zuv983SqiUh13CgenvwisXRTOhM2vohTIhQphK4MiYbpLNalWiNmjc2cjDlNdmzV07BNeogWzZ5k/hpPnRZSHuJMys3S84y1G3A== 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=OPYi6nf5hF87bcZhksCeSoE7DI1/Kxlduip+Pl9A+ME=; b=VX23sYR/7NHPDDTppcgEOGc3aybw8mTTpDvwwgBQV1p/HNU+u7GH1sIoYAGpnLlear/ahLiHvJNiyWoKp4L1yGXEV7+Q0X7/hp3ci0sZqHd4afUlC8vzJ6iLhUidB+Jtdu5jQ0Bmp6jfvlueWVaP9HtJLN+nby8kUY2B40oF1jV3dnCZ1i/nb8lEpwo9hUi+EXbqcjyKLL75kSe5wGq+k0XoIplC35G7HyeiLk0mWKasSghpklZcnCJCgul/ZdierAZCQtdMu7L6JQi4G8chK/Y01zkuLGKsggDK93xWINz0QIc5w4V3J40RyUS0pXcNCnmTFg4NS8mujwbYIfkC6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OPYi6nf5hF87bcZhksCeSoE7DI1/Kxlduip+Pl9A+ME=; b=jolDNz6h3bWC+zrFaswi3C5hIy9dA/w52JXm7z1pzw17upGaNEvkNsbZ8/toKh4SRnIBCP/eqmsv/L6IzDuB4/P0P5XE3l50v3i8QiGzHzogaRv7BvaoGVCyyge6PsFma+kugGITWn2mZyCZg3lq5JCS88MaS3Ikyacu5VgNnBlrNMoREoj0SVUfifPimgP4hEY98NhPAH+C0cByq23meq87TqNEMetSyD/oJCsLit1zEjHszPB9ZYU3zdzWFK4Xz43BLyXhoe/ajelVhvP8vWmEXI/Cpwv+JnK4bN9Pt20Bh2hD24mPoorjiiO5WhfCcVXaAwtsDgopK9TAeGfIyg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VI2PR04MB11002.eurprd04.prod.outlook.com (2603:10a6:800:280::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 19:17:44 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8069.016; Tue, 15 Oct 2024 19:17:44 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Tue, 15 Oct 2024 15:17:17 -0400 Subject: [PATCH v5 1/3] of: address: Add parent_bus_addr to struct of_pci_range Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20241015-pci_fixup_addr-v5-1-ced556c85270@nxp.com> References: <20241015-pci_fixup_addr-v5-0-ced556c85270@nxp.com> In-Reply-To: <20241015-pci_fixup_addr-v5-0-ced556c85270@nxp.com> To: Rob Herring <robh@kernel.org>, Saravana Kannan <saravanak@google.com>, Jingoo Han <jingoohan1@gmail.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= <kw@linux.com>, Bjorn Helgaas <bhelgaas@google.com>, Richard Zhu <hongxing.zhu@nxp.com>, Lucas Stach <l.stach@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Frank Li <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1729019855; l=4731; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=mpQkyAmcMxPoQ2LNPaVnnXkLHMMBxJM2cbPN+52/6qM=; b=yAk0aYUD19q9Mz9u5tenR1MnHu79q4JNoA+Uict2jX/ebVbxgfGNePvLdPw+Dmrui9Xt5LDxE RrjPRxJultiApLREyohOc57Zaa5aTq4ocyaDO8YLNHXlagw7siqVO44 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0117.namprd05.prod.outlook.com (2603:10b6:a03:334::32) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: <linux-pci.vger.kernel.org> List-Subscribe: <mailto:linux-pci+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pci+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI2PR04MB11002:EE_ X-MS-Office365-Filtering-Correlation-Id: 915ca2cc-1e15-44c2-35a7-08dced4e0bdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|366016|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?BEOnK+P6hHhhhrShmF86/L0gRPsuLb4?= =?utf-8?q?Qrmn4ZdV0R+SiA3JVT8+0OfHbfSuZtyVzFsYU3s42yB+ES6sIbrJRxqUGgbjwqfGT?= =?utf-8?q?D6gzpzhYifQftS1BNeeognm9wqwB7HppDE7Hm/tTL4Da3lADpbhC5SFaZJ97+xH3n?= =?utf-8?q?HbOF+TLX4jQDTKaw+TIBBoah/Ad+2TkSNoMDeqQIhsPCAY9O6R69xOObxRXR073iS?= =?utf-8?q?6Hz56aAM47XuXD+lk7l53QPGJBV8S4bbHspicN+Y1uVnrAUu2Ib2/nIbyxpGoWe8s?= =?utf-8?q?potxJ5VMtNN5GcP5LVwHJxvLV0ZiVp34VcgSBxa+qcOz6j+R7/IUOOggwl477v0kD?= =?utf-8?q?G6x6hJGQHG1k8BhhvuolEJk8lWbQ5UrccMTu0ZFog0l1BB4hgDXeu9owVhzzLXXlh?= =?utf-8?q?rboc3XL9a8ZgXFMCYRFaSvfdJqX+q89OFwQsVwG6fxxKluLc9X+kiPvlxSvV7Pcm2?= =?utf-8?q?2o/q3JBXGxr46AYQXQDwp6hln/iBKMNr5olaKtwkF0SsvC788qfEqvSXsYtvQoytc?= =?utf-8?q?gqETi/ZNNeU+kINjJ9GK2H1BLUZDzL6lIUi6jy1cDGyA0+B6wfjpid9rHpj9ldNEA?= =?utf-8?q?z+b5FXdcNTc7QY5TpJmO93uUH+iqFvEF1uK/6KsoEAfkXeHuJxUfls/9rKBv7zfH9?= =?utf-8?q?JJxQd0u+gtYllOWplb2rNEqHffw1fu0rjCcUNqfEkCSjc1NEthgvh00d9qFpigN3v?= =?utf-8?q?gUm+Jv8p3IM5vKBylWYTBJu5Ad6B+H7Ds+euTIQQ38oZSDDefFZb6eSpEWNBRH92q?= =?utf-8?q?hZJlZX+AXEBdI3Z0g905EGrGvdmfRiHaUPT6aSPTPaQlr/VvjG3fBewzY+Tw5P6ma?= =?utf-8?q?+ZXPIH2iKEWptAPrisw0JGQ/NpVCoC5B4wsqeNIwXuAtqKuYu3znmoBoV6yf6FMmB?= =?utf-8?q?KQZUWlUO4bEkMDBxWYnYR4uk3VXQJCZ0n+bfV/81wCUBZ8Zm/w2CAMT0OaCftAZp/?= =?utf-8?q?+2veN9+pXJM2JJv8Zlnp1ljrdYeg1oseexgrxkHiekA2BPAS4yR9TWSfq5K1fWev0?= =?utf-8?q?lFYI7qBYXxZKAxUrBD5RyHoURtkmsM9U6lwsiWvPx3Gaq4sZ9LgloZo/c56T2RVI6?= =?utf-8?q?E9ldcClIPXMLiGsFAwrkkPINsM26WF2+IBOX7AJXtDDFP6J8bVbT+BWJlIA7CZ4SU?= =?utf-8?q?ME/B7qF9X12zvvqO4hrpeF0y89Ip1H82o7VoBQeybf25S+TQd3zR6QTB/b0Wqt6AO?= =?utf-8?q?OI2bxvytkEkUHb75w9mBvp0HZS4ymZgiQY+V4xZ6prOnf5SBap6UH+YV74xGKxGs3?= =?utf-8?q?UH/dbA+u/KmQfr7rgRMJg0bVt789HLWHTtidjpuM309gsSL2eBPBTDpc=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(366016)(7416014)(376014)(38350700014)(921020);DIR:OU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GxLGbUWiZ1cem2JEVC57x8NdnYjvfvRNEoygyp?= =?utf-8?q?2/+15qfRk9xjEodX6XfuSwfTj2nPX9FDQLUv5SDN50QLvjInCsIFp/6K8Za1ttePu?= =?utf-8?q?FklcssTTcXHTUStuZ+x38uoz+gOGKgkoj5+p4Oa1+mZnWOZ5zcce2Q/Z4OnR6jf6X?= =?utf-8?q?CrviU5PlqtgfCnnxsOtt47T+fes018J8GNv03TLzXJiyoxG0nnFdjoYV2C5qUEcdv?= =?utf-8?q?37Ggk5/xwD5I1c9EmRJ1E/EABYuaDFj8J2/6qUOqMAxo2RP9AeyyBQeR8iIGzR9BB?= =?utf-8?q?5u0rZnM1jYlrE+F6S9XUzWhOabBlpMxDV1N9CE/uZe97xOVOITouJQZoWcZitVoJt?= =?utf-8?q?CTDGl1Ll2tj4MCu3K/vuEz83VlJvZjlxAhZV2L/u/sBoxpwZhPh4lQU1vAiz11xjC?= =?utf-8?q?QiclLjp5cCr4oVw6ABWvlNtU3ra6rU5vU8Ko4dSRbPisSnY8TyIwk8lOUVJjdP6Bp?= =?utf-8?q?qjEL9/gSQJUXPzrRWMjZxBBW/qpcWwuLofuKxdl6GGagXi/enKtgJJvDaoyXX4rLg?= =?utf-8?q?4pIuGemKiMaMxiYbkR5DVqjzEhzjcuZl6rGWVDMVwzqKQmYnOVEvaf14vJxELLpgm?= =?utf-8?q?S5UVCAYyw6XleMSip3neW6mE8PPBKQpkK1GeXPV4phi3HoYpwFA9Dp2qEsa6zDE6l?= =?utf-8?q?8ZIaES7zwNMwThZSt2/pExWXAFn+vyjCarDjrwHY8Kfkf/6TksNp+8kE=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 915ca2cc-1e15-44c2-35a7-08dced4e0bdb X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 19:17:44.2821 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xc2rtHGTlkrULzy6w6+XBXq3IupCZLahZWyt0jCUb4sfBblRJtFlPJlYKENjTCMHbknPcTy8H4GZpBR38yxb6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB11002 |
Series |
PCI: dwc: opitimaze RC host pci_fixup_addr()
|
expand
|
diff --git a/drivers/of/address.c b/drivers/of/address.c index 824bb449e0079..38db2074494b0 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -811,6 +811,8 @@ struct of_pci_range *of_pci_range_parser_one(struct of_pci_range_parser *parser, else range->cpu_addr = of_translate_address(parser->node, parser->range + na); + + range->parent_bus_addr = of_read_number(parser->range + na, parser->pna); range->size = of_read_number(parser->range + parser->pna + na, ns); parser->range += np; diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 9e034363788ac..0cff903653916 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h @@ -26,6 +26,7 @@ struct of_pci_range { u64 bus_addr; }; u64 cpu_addr; + u64 parent_bus_addr; u64 size; u32 flags; };