Message ID | 20240919-pcie_ep_range-v1-2-b3e9d62780b7@nxp.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Manivannan Sadhasivam |
Headers | show
Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011035.outbound.protection.outlook.com [52.101.65.35]) (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 659711B2EDB; Thu, 19 Sep 2024 22:03:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.35 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726783438; cv=fail; b=TWukvBlax38sfKdoc4VLNfRPg9bZeu0JORFkOn0YD4G5n2LaiyPJebYYDDcM6I+gH9DGPG4geFqPa0Zv14HB0Hz2eNhHEAxacts5858FxUwOOvJTRxJQCR8deBe/LQ9R4iaVLQCaazfGm+QVDfyLaa2HoTa/Srb5QQP0C4u0NUg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726783438; c=relaxed/simple; bh=CFoCwtRrggdpXdLt3i1OWIyXKTciqGwjpH4Uvpg1/bU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=tqUAHHfqzpaxL5F4iz3PKID5iZH5mKDeT6lzJepyoEjzBseG+r0WpY2Vc2Pi1fEzt5Dhhyp/GQyn6fb2F9yxs0ID8+v1Xo4vV+kCvEBtHMWbnBWWYzMO1M1SsyRbOp4xskCDI2Wv/MezEg7Xki5LpI5uNjfgV1h3o9X724SNmiE= 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=LfFbEU2/; arc=fail smtp.client-ip=52.101.65.35 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="LfFbEU2/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NXjTwSGivWoWgoczGf+CIhF/Ot9016YJh/UFE32kEocEy4DNnubv7TxEjXXH+/z0yaTAVb1K3DO5KU6s0x2P5OH339VVttQZ4AkUYv0u9EhkfhhC6tOBs4cdaMNBoqT8G4hfl8CE4pfIutn129vWsi8G5T9HhYG3e0usr8RCTGSttrQtP58uvpTgM6aS0W0GF01ubNFtlo/Y1OzZmR/aRKzE41/jsTBDalUVh4GD+yU02s8CXx8dCtjaVwyt4RN0zqkGMuva2j0YRiFzOhHnwpVi6/c0j8b5Hivh0IBm2aLvY4ZzINs0vsl5gvuIk0KN1N/4dudPl9CbH8fsGihahw== 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=lOhge9LSN+/6iSc55XWDZwS8m6rfwMYknlDwdks4E/U=; b=i/cseLLCqeV/iBugVet8rqY7sz6CiZtUSK2WQ09rNvGUFlOMCwQQVR3sJbN8iM1foCDqGGW4kX+X8uC80Nwg3RbJqUeg0tWzLDSHBav/C5x0W679XMyGB5YHv914iVivuW38JstT8RQ1gnjnKNErCGNLiGFG0P6JqW4GwLFcSTjRkh99IMXC/hK5SIT7d69Ui3eTNcOczzRTaT8S/++KaoHNNAncJQM6Oy29qWFDdOdjnVNQKP55iwd9AVQaZdt/L9p6VFhN8mty/xGf3979Zv65F2bDlPYk2F1emVEFTpI1AiM3iOsLV4kEWKFBCfG/22AR6nqOTiYzJ4i9ZybQmw== 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=lOhge9LSN+/6iSc55XWDZwS8m6rfwMYknlDwdks4E/U=; b=LfFbEU2/yKzI8qAvw5ik15kwOjNFpA88vmGXmGDQUKuyMRj/SSYYNFGztH0nVGjrTE4fCsVAumx8jy70h8RjRG17GftVftsRpdZQ79qvypevQR0Orycl0jNS94WbGBSJRTROcTdBvHtLJ6wm8peuHLAjgVyLhiUp141vay7rkNgvvr6XfKhK4iM/CJRaillS7cVVldEWavsINVi/YIor4GoyLpsAT7F2d5dVDUI9lMrp7ngH9UfLbh1pfULaosPzKj0v9z9g1ZF+DjpPQCvv50ttZrXrFNKgSaespjT423czMUJyfcH6XlIfHkB//Qw6sUiLpmwSL7zxUPHpS9WjVg== 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 GVXPR04MB9849.eurprd04.prod.outlook.com (2603:10a6:150:112::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Thu, 19 Sep 2024 22:03:47 +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.7982.018; Thu, 19 Sep 2024 22:03:47 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Thu, 19 Sep 2024 18:03:02 -0400 Subject: [PATCH 2/9] of: address: Add argument 'name' for of_node_is_pcie() Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240919-pcie_ep_range-v1-2-b3e9d62780b7@nxp.com> References: <20240919-pcie_ep_range-v1-0-b3e9d62780b7@nxp.com> In-Reply-To: <20240919-pcie_ep_range-v1-0-b3e9d62780b7@nxp.com> To: Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= <kw@linux.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Rob Herring <robh@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Abraham I <kishon@kernel.org>, Saravana Kannan <saravanak@google.com>, Jingoo Han <jingoohan1@gmail.com>, Gustavo Pimentel <gustavo.pimentel@synopsys.com>, Jesper Nilsson <jesper.nilsson@axis.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: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@axis.com, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, =?utf-8?q?Krzys?= =?utf-8?q?ztof_Wilczy=C5=84ski?= <kwilczynski@kernel.org>, Frank Li <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1726783409; l=1162; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=CFoCwtRrggdpXdLt3i1OWIyXKTciqGwjpH4Uvpg1/bU=; b=tXUs2v0V0RFIwa6ZPvWr3y0CX4s/taaNmgg+vmk8xP6+YDS9rxHO9lCenfMS05RisYBvIp7X8 8WfX4Fzn2jWDiQ5EKMND3xZQ71drhyNVM622z+VGhuMDF5e/BXt4dEV X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0057.namprd05.prod.outlook.com (2603:10b6:a03:33f::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_|GVXPR04MB9849:EE_ X-MS-Office365-Filtering-Correlation-Id: c0ba111b-2363-468b-a15e-08dcd8f6ef9c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ClTxyUlvT+yurB8i6ddh40keKXsp8sm?= =?utf-8?q?bS0O/rZL5w/H8vU7y1zMsdsZEnU3CPolX7/wYKIAqiSKmzUxCXetAsJetr5qFalEE?= =?utf-8?q?6+568o5LmU889aF9V3STh313xa7pVN99Ui0nlTUfhxD6e6IYRG6kO/2vH0oGm6pRp?= =?utf-8?q?CtBcBwYF3C0iRvj4eDdGbZ1xtbPELJk/VGagudRYE7H4zO0QNJaihgiiZEc++umU6?= =?utf-8?q?tKJSFhLKfGYlmCE96ixKAFNy/4J55PTjFDPElpd5L75LT37RAS/H9f17fa7/9j9Fe?= =?utf-8?q?/gFo77eMQfcw6CX8sYRjRHYevSagNLdV8DYcWuU3+zy97QhhjjX/P/AOzn1vH7ouA?= =?utf-8?q?ywnxEWRHQ3SKIz39ZvfiEx6ckEy8x2AZ7wYO2HdZ24m3At2e8oiBINV42Vyeo795w?= =?utf-8?q?e6GSbHpqjLFvBWS+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XjH1cz0NkAsm+7BFflUshbOTJJEr2YG0s7IJTrNTjwXhXVU0kH?= =?utf-8?q?y8zTQbarTjjJl8SHiEfxApu+BjbTSA/LveLYKFFrUqMeSB+zgHRrx7c=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)(52116014)(7416014)(376014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FyCrhaoPvrsty/RCjgXGZg1CGVdF?= =?utf-8?q?1ZI0v+chmMYyxszlw+5LGKvVHuXB/XKf/NIJvof7+j+A96rbMZOa78yZZObXtXKRl?= =?utf-8?q?Or0ifl5EZM3spOeAKZ7aZeZWp42XVFEu8z5LkyLImVIIP/I6UfwHbqgScxo++5Twl?= =?utf-8?q?ppbc4GEcS2Jlas2/uNmsnDXovp1T6MTDZoKIAb/XtxN2cwycOgax4uDWvQUOkWNCK?= =?utf-8?q?4Jq5GdKBjApr17aKkupjk5gjB+ihPQeQqmWA2WW52ZO7UYDhB21U/uL0Uh5wW+Xpu?= =?utf-8?q?8B+sghHYdegW1SUYYO1pRUncqgp7ALiCueADXNCRzKMmamvyDWPKDSgwjw67NWUl1?= =?utf-8?q?cekYBb89aM0iU1AuKfkjxgWtjNR13KdeBguKwIpUCBeY8J20xAvWdmhnL1Rm7t8n/?= =?utf-8?q?5AKISxThgN5Jj068pdxbo+0T+j4R2q7PyNH+9CWRvAIA60iwhp7Ad12unzVt4kTsN?= =?utf-8?q?/G8yEryOvJdV5HBffqLLRhENMt7+9wvQKho68h4rQ/9yDr+Q6zADVCFpcHN7f5mkO?= =?utf-8?q?utv/zk2gqjQm8457JcgUv+HqCO4Zq6LTGAmNE1ivJfW8uhwIpM4sNIYOpi74aT6Q+?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DQtDTUhSdO6swdw2OemKZ5ts8pJo3v+G8QYA4kqIKfY8lBLIqBxcUK1SHembfB19G?= =?utf-8?q?ygU+KcGSX2NM?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0ba111b-2363-468b-a15e-08dcd8f6ef9c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 22:03:47.4467 (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: ei2qlU0msnF5nG6lG9DZ8S2CefiMJwYTQFe0/ONIl7Gxl/ur7eYJZrPhir5NzBLfaHczDM/xYwHeZLWYxAdIBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9849 |
Series |
PCI-EP: Add 'ranges' support for PCI endpoint devices
|
expand
|
diff --git a/drivers/of/address.c b/drivers/of/address.c index 286f0c161e332..d886f16df8a6e 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -147,9 +147,9 @@ static unsigned int of_bus_pci_get_flags(const __be32 *addr) * PCI bus specific translator */ -static bool of_node_is_pcie(struct device_node *np) +static bool of_node_is_pcie(struct device_node *np, const char *name) { - bool is_pcie = of_node_name_eq(np, "pcie"); + bool is_pcie = of_node_name_eq(np, name); if (is_pcie) pr_warn_once("%pOF: Missing device_type\n", np); @@ -169,7 +169,7 @@ static int of_bus_pci_match(struct device_node *np) */ return of_node_is_type(np, "pci") || of_node_is_type(np, "pciex") || of_node_is_type(np, "vci") || of_node_is_type(np, "ht") || - of_node_is_pcie(np); + of_node_is_pcie(np, "pcie"); } static void of_bus_pci_count_cells(struct device_node *np,
Add argument 'name' for help function of_node_is_pcie(). Prepare for adding pci-ep support. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- drivers/of/address.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)