Message ID | 20241119-pci_fixup_addr-v8-1-c4bfa5193288@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2078.outbound.protection.outlook.com [40.107.22.78]) (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 B8A3B1D1514 for <imx@lists.linux.dev>; Tue, 19 Nov 2024 19:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732045483; cv=fail; b=lZmJTZ44aOFDJfmBJ5+6zFzmBXXfUYP+yCu6N9tA/vzbffMI/s+GEUPJZ8HnfVSwio7+xblMagQ/kD/3z43IXS0OAdY77KdILamH4lxGO3JCfxT8zLDeWkMQ6QNdosHIqCiejqPkSV9QDg1tAAyGCHFd4nTSGWuX2Yk4M9PcDpg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732045483; c=relaxed/simple; bh=qjpUcIbnkk/T4kjU5qqs7K3xKeASfuBpjDR59WiM6kE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=K1j+xSa/mCIQuMPy1oVgMOvQRGTiwPK6zBID/Fyi72s/zH0BOuEgHxDvJw6xtHvVgPONb8d6rM3RZyTl8NrKlSaHhu4hLJIBtyhOkGex/EtgmPQ5bTYzdWSWqr9EROZGv7LDeaD5IRJV/bR0tU3qqBUhQmm4MwSLacTYVMWfDs8= 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=d6GB91o9; arc=fail smtp.client-ip=40.107.22.78 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="d6GB91o9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pRmzvwnZUT8O+vyPmjpVFs09Bs9HE7Vvctgl4+vjQjtL/lr8iDdc8+/53MDiIY4p4T7AxpyJwA4E2WycDcrMjbC+Me973H7OQG+aaQjAzX0qhmt7sBGw3XJKZ4gTZRxclHryQ3eHIyxvjhBkHwO85WWwzbwWHrc2Zpq/wD0sGFFOKX03s9iNYySRwUwMUK+drIFjXNvTh3oXIMv1PQFuBzS1RvnmkWNjyjUjCxfE8IhRMRjU4Z6ttbxVM8oWqxR8nhn0SdrdiLYCTDljq6jckpxW9svtpp5WxyY/Sac81q4+CE/xZoyFWLoMGIn5UuAu/kBfLEM9F9ptC/31SH/SgA== 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=xbHBynal3pF/RegJFlo7IroGpXvPbJAYX+a27w56dGQ=; b=XLPpPn+REQDj1VmvNnnRodJLWQLLomflFJOzUT8BkWaA/uF/gB4FuvJqmHbu0JTcjRK/pcpbVgT9/+kHm43CVGEFZfk8IfoZwzvcWXXAlUSLiBCIe0wCYQ1gEPAJXEPiGJFtbcQaqiq5nC17cMgJuF7Dgo4Op+Szv5t8lUYXc23W+3LCcZXpAGGWEhs1/Dp6FqkvGcmBkz9VojKDBzGQUa6HTxOatiZjPrNAJQwWgZdLlk4RNY2nEdOpgkPKjIBR165SRwBeEWO9kvAUTy6+nNtM1ph/CNTJml74RUMcrwERbItLiQ3A5wTcjZ2EuaDU7U2GFyLU5M9Yt44omsmPKw== 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=xbHBynal3pF/RegJFlo7IroGpXvPbJAYX+a27w56dGQ=; b=d6GB91o9boo2gFLzpuaCFvPvZ6HJVnCGruBwjnUbABYHkSspL7SlmGoQC0W4vMIYP88R4O9NnYLvZGgjLMrDdse1hbHrCsCl6/fjpvGhwn/AAdDezBpehVIPeD+iN3A8FjAHiyKTdPfNGpIxncTktqQ9bAigbmxJt1Yr79v9sYK3zYINzB8+5Jvtt2iN6gDtVZXNb9ADtIgdWl4AAAeYq74zXrwvjyaxbIrQrnCb0m+tgMv1SSepLOUDDwVSIANtRRUbot1J5zJND0dKP+5lnrO5awljPwVEa8szUXMI1Fn5hlk9WFWoUnIyRXYz2IdETyLC8+2yOw6TTzk4F7TaEg== 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 GVXPR04MB11068.eurprd04.prod.outlook.com (2603:10a6:150:215::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Tue, 19 Nov 2024 19:44:38 +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.8158.021; Tue, 19 Nov 2024 19:44:38 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Tue, 19 Nov 2024 14:44:19 -0500 Subject: [PATCH v8 1/7] of: address: Add parent_bus_addr to struct of_pci_range Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20241119-pci_fixup_addr-v8-1-c4bfa5193288@nxp.com> References: <20241119-pci_fixup_addr-v8-0-c4bfa5193288@nxp.com> In-Reply-To: <20241119-pci_fixup_addr-v8-0-c4bfa5193288@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=1732045469; l=4876; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=qjpUcIbnkk/T4kjU5qqs7K3xKeASfuBpjDR59WiM6kE=; b=iO4hrat6JoC6X9ncQ2MPC4tB19yUm0v3tRRt1J3qno05fE/u5aLA7nr42Ka7xwfmMHmVTaLIP P/T24/1OxQfA0ABYFLq2EzOx7gpVAW8Wn5iRPR1VUVEXC5VfpgqvnqH X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0009.namprd05.prod.outlook.com (2603:10b6:a03:33b::14) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GVXPR04MB11068:EE_ X-MS-Office365-Filtering-Correlation-Id: 0354921e-19d6-4ec2-4389-08dd08d29a94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?s2+f/rMtxfObBvt4zPJ4G42f70R8qkX?= =?utf-8?q?08Yw8RXeA6WGEpswEun3rAqLYRMuV8bULj9D++VaVXStgQ9lgtsp3cvCyxY6Jd7Mp?= =?utf-8?q?pUQzhh6YfWEsGWxcPdP1JIbsv4/78rR0vrwkEMJyv+qc9nzhIqItFFLTrzQTi6KOr?= =?utf-8?q?boLYYvCnk/0Lfbs0CEnYmPwKFQP1wILHf86Rl8VmjxxcIOajjnF5toQcK4MJyP1O4?= =?utf-8?q?+YYp1nZw/PSas/8h+ajjwwxD/zg8+WDuiDk6PvTxVSodq9NfF3JscwH/ueHw6UQjv?= =?utf-8?q?rUZTm9qEszXdvoCBr5QywCRz8TE2EA+FFInoj9Pf8Gmo+R4jciMT3uWvagEKfiHG+?= =?utf-8?q?nV+7+YI56jK00QIV/W7EUHvriob1YThQTFLNDDUlfY9RNAD5ghc1CUFPEJVVqc4Jv?= =?utf-8?q?166L5trn32fx2iVMVP7C9YH22kGndHzfkpJcwzCZICqHYrLGqtq2Rk68qWHroZZcH?= =?utf-8?q?Qe0cyhgcC0m4CLrnJbclXN35oHmkRgeMmBI2t7X1sv06lgIvXzUJIrnuaRU4uEPST?= =?utf-8?q?SEIlhev21C+UWsrkHkpd7KljTLVEfZLnGBrI8Lm9lyf7S/9TmhIikbOihUSC1So0x?= =?utf-8?q?sEnE3hQ9yMhv/3P5jojR7aWdynRU+9iExadn+AxUXMpKcKCauJH+9YQvnW/WOVuJu?= =?utf-8?q?/RHukklbUJH3kSrS0n4q4/CdMVPLJq94rnqAeZjO3JPRpDHDr2PyCOeJu+jiusWm/?= =?utf-8?q?1lOOqhy9Wp2n//Gfso6GZTBiGFHD3V8O0atrTcmLvkQaT8cPvYieNjWe+86ZK9/mG?= =?utf-8?q?De6t66e1v/kk53pK32Zv9ne+AX2utfQAl2hiEay2BpdOa3QmpU17yZG51q5bff46k?= =?utf-8?q?wdGTi6XtgrsUMMsTaNQlEh/qLz70oydi4qzXtxPrMVi5zMSiX3o0Dk1e2Wfd3NY3z?= =?utf-8?q?iuOwY/e3JFfgYbDP6sOSM97bfIXWU7+AHy4uUWjx5foHQ2+wQtgin9G4FiWogzD4R?= =?utf-8?q?XGOea6HQIRMOPNIoWgfCmnGdasi89naM6rj8L94o+nI+a7fJdIHP5294B6Kab0CRV?= =?utf-8?q?NFE9B/6w60H9Khg5PXxll0d+RIrVy10QJqDU5gQ9wpj81wEfMOccfoNn3JstDmMPt?= =?utf-8?q?B6h8ki3sS6K4uFpJ0/feZradOREl0cKaeHTNrF+dOyZbZvi987DwrXWKwpeDigGUX?= =?utf-8?q?EFbI5y+1q5LW6ag0A7ESIv5Z/9YMdSB3P260S08Y2wGtsu7fA0hcemHVLHFwx2jFG?= =?utf-8?q?VjL+5810w/fxMdbEEFAtzFpcSGi1z3FkTV4XgD1hXlNCdn4yy3m7nmz0uDPwXztew?= =?utf-8?q?rgOxAdVnjHBV9xa16+bfayYHYlfm7mK27dgeP1cJnTmFfd3UDyQdS6tnNceU3iQ9D?= =?utf-8?q?ZA14VSWfsD1h?= 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)(366016)(52116014)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?yE1bCG7mtAtijTBSENmtbUjqH+7d?= =?utf-8?q?ua3reUY9rdy1NmVz2kGgiA/6c7VI84Txuxz8skOBAiOQsq/+wVB3e9A3WMUsO1ZO1?= =?utf-8?q?mSaGChHDj+LaafOlDSOzB5i7ukO9dKvL2x4EhJ1xb9ThyqOWXdx7LxctFk9WItsiw?= =?utf-8?q?OB8MgE6GHz+uMkgQPSE/FVSi9uvm+hKF/wenELX8esfedytQcIZiujfft4vKwHyYz?= =?utf-8?q?kE3aLYQS+KNvJCA+GDHC1Tvymn8fE3H32Qpfu1QYlKfpi/uUgKVsDogG0Ki6nwgJ7?= =?utf-8?q?9A0GgQo+9EKr2Jz+A2VBgA1XZN4vElKl6Kd2Xv2yRcdxGKZ/jgXwRWYoAjvw0bSuF?= =?utf-8?q?Ks0Lb9zE9e+HSosTSbhBFE9Uc0Z3slHSsKRwntz6jt5BIqdn6y+FWngLVOM91d4sJ?= =?utf-8?q?t6XmLdSEJAj5hEhus0AoXnp9ZUM2q5+u4dLP9K6CKQ88yUMxfn861HhLxUxrDYEBU?= =?utf-8?q?D0xNdnmEjoqr8sqOQrPIjuPNybH/eWY6GwjKnZKjqsdn+UGGOFb5qRYZp5VOLHa1e?= =?utf-8?q?FqyrvvsxI/KCTAPtvr2zBzU1VneUSiec0QxZ3c8IcUHv//32Iwxduz63FkHnr0mj/?= =?utf-8?q?6MgE0lbcxCDf2Eezs4jNP5S0vS+BS+e8azBDn1DOdEi09e2IY1sSJ3wDPx/alRGB3?= =?utf-8?q?d2v6AQbGyEmOoaSf2rbxrYfZ8x4TOtaT4eh0fkVAeOG2iqWS/W7ZNH74wzC7BGItK?= =?utf-8?q?LtCTmUb4oNxaQh6kyVXgkB6uN93FeVh4AmFe0VncTgrXHh+X2IUP1MxNtqxOsPyct?= =?utf-8?q?rdRQ+0L4Nl0J1+RReCIGIr1yIA4WtBy70TRj8sDHR09wzLe25S+1sBjmqfwtSRVGr?= =?utf-8?q?QV8vX4FRyQYYO8xIgjPiNtMJZS9Ibx+e8WiNoHJS2XF1q/3GjPDuWj2yo/Nan72Np?= =?utf-8?q?WGLVXWRbidekS33kQ1T8W6BvT1CVrLxTbzWDAFKT09eU+ppQMakRpNemxeCkDVEVZ?= =?utf-8?q?m8IbKpK9W229mgmRX9fR2uf+uoU810X5ofM9w5sPKeD94juuZ2onbQEnKpsb3M8iI?= =?utf-8?q?l4+yksi+1sfOn0FrynVZgQ+fSuQrczkbyS1uMh5MmvfTEeBvf9/NrGjGuReSifWKh?= =?utf-8?q?KCOCfAaymgBe0beWXSs/LoRxfUDIEOkAp67xv74R59/W7nX4SKfAem3YiowyIsWGE?= =?utf-8?q?w+ss7J1N/raqael39NirO4TaWsGp3Ua0gbBewLBbRQJOixcBsCg6CnT6iPUdTR91j?= =?utf-8?q?YjUrBY5lGwHlLb02XmnNKPSvIUjvul4miH3tQjxx9z8Qhf6TbghuwS+6HX1auxjnM?= =?utf-8?q?HfJGDwfOy+SJDpWltCoRdskSqgDJ/eOawGBm1urfamURD50YI0IgpaQ8JeACm8hE4?= =?utf-8?q?egoAxuK5L49j3/VcLtVQq9kHKZsCSHSVoacWqrPhNA8IXZA9wPAGK3ZVfjZFeiMyl?= =?utf-8?q?I9XC0SZ1lh+mC275TjyRD2qsMEtOajJdj1U1z1UAIfHgRz0MIoYPEIFQj5A9Gzt9h?= =?utf-8?q?IgVKfBKIT0kbW/RKHS+/Vu5fjAWuKnhIohiPCxa8B2OOYUhADlvz9EpRzMBQwtJKQ?= =?utf-8?q?gm3gsh4mk+K0?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0354921e-19d6-4ec2-4389-08dd08d29a94 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2024 19:44:38.7371 (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: sCr5miW0KnDWxaWOvy5hhUShmXcjiPz5YxbSPrOpyKLOHW89ClONC+YYev0g+bb/TIQbX143S5f/0b9MITRPBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB11068 |
Series |
PCI: dwc: opitimaze RC Host/EP pci_fixup_addr()
|
expand
|
diff --git a/drivers/of/address.c b/drivers/of/address.c index 286f0c161e332..1a0229ee4e0b2 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 26a19daf0d092..13dd79186d02c 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; };