Message ID | 20240919-pcie_ep_range-v1-2-b3e9d62780b7@nxp.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 E6649CF3975 for <linux-arm-kernel@archiver.kernel.org>; Thu, 19 Sep 2024 22:06:19 +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:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lOhge9LSN+/6iSc55XWDZwS8m6rfwMYknlDwdks4E/U=; b=yRna2yJJjaUynDE2VdLLKQFbg4 ogBnekumAPpjkjIFj+cbiJmDf7LgSJUQsFEd6+Ji0vVGT2lWBeni/6zEUPIVupAVXGmltDPI3FbsK 2YgQw5bgneXM8PQurZyimolZUF3tQ9bMSxlWqbHH4FiPJ7skDeh3TwAjvRtwn3APlR8kzeleRAs+L cLDVzMmiDe05vSlYd/ObRwiVNntH81LJOGhjQsQcyhEZnzVB8b9XEPIsm1XTaIJATJlT/zW9I2e8w ASyRLVyw9FoSQ0fJ2X1C5FfEquaB+r+qb8+HbQzv7AD7aJ3+4jdP3rS+EhsbuVZOz/nymGH3tdxQC nrcAqapg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srPHu-0000000B58a-0CIV; Thu, 19 Sep 2024 22:06:10 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srPFf-0000000B4YB-3M0W for linux-arm-kernel@lists.infradead.org; Thu, 19 Sep 2024 22:03:53 +0000 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) 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+K8402D8cAdDf/WCK1lOZn3+SUEedE6dFL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s7IJTrNTjwXhXVU0kH?= =?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+?= =?utf-8?q?YtLLCkjA3OXq0rZyqE2ne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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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240919_150351_880568_0DA49C85 X-CRM114-Status: GOOD ( 12.09 ) 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> 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-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(-)