From patchwork Mon Jul 1 02:32:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13717505 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 EFDDDC27C4F for ; Mon, 1 Jul 2024 02:33: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:MIME-Version:Date: Content-Type:References:In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jCaReUbvej2eyrJqLz7qdvo9wWO//WyaJ59QR7IITVE=; b=B5R91U8vk4hexOU6eE1araroQ7 LXsfF77xy0mMZSXcm6TS2PLaRMYyokMpZ+t4/SWL+i/e2r4z/MYFBQSFSUHwRqbzjGiV/eJsr81N0 BZIQVmERl6JXwPIT3bw7XTSSCsvoHQLXgFYTDhJPTXzlAo//j/JQ7LIIrRmC5T6RDDtBLECzSOlX+ yNYeVkMKzZNPvf4tEiacRcTh5sy2FWMhhWkjvaGWia3ZGniHrzJTHwWuXWSpgRYf+te9EXQt4nFq0 hvcMvO2enT6Sht/BvQz7wULsM4M9asKLiCPSJIlp39sk/Iic+EuByv01yRD6sDRpPmzXdHP9O2/gT HajbBNtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO6ql-00000001TqP-2d5e; Mon, 01 Jul 2024 02:33:03 +0000 Received: from mail-os0jpn01on20604.outbound.protection.outlook.com ([2a01:111:f403:201a::604] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO6qS-00000001Tji-34Pw; Mon, 01 Jul 2024 02:32:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JoGRzxWSGVzYG/DUJExPxhbuBDYmvgdZy+qh6YBCGqvpdD0DaCOubMEQl5RUd3L2+vfma61wQqZQHsVVyyZHTfcTCEikTyz4+EI70xrt7ngaa+cZyK+/B1P3xAqlrTtX0lg4IDnBGVOLx5QE6tDmt/FJ5j5kw84qajrmQaB6nOHY+47yNA0lxkk9CpHByG7pLXhLN2jcsGpUKbnC7lDnpnK8ZazKDXRHrI6QAfyeAfMPP00zLNn2EZ5T1Hsl0DcmM9gEVPXh558qRVCRha6rVwkePp4HGHLCEOb7CnKZLJmh++Xi1VmjNPeBpdRif+xI92UDsNRr73GqY8g7gH6cXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=jCaReUbvej2eyrJqLz7qdvo9wWO//WyaJ59QR7IITVE=; b=ggASuezI91fEC7Au89LsrQLWL30FC9V80UwPN+bl9u7ORY0K7/QVk26xQhgMHu/ru2ekl3ZLWXqYMM7P1lVZydWV54Wely/HUijYXc8TAwLRxBa2p5XXBMvjrUBUwxvOVcJAHROFe2DBF4tw0tv0SPl3pZYakGZsBWESUXg8Yj75ES6+0QNTWZluBe/pbDQ7wT7kvvhxQfz2cS4G2H4b2GTocInhSyXXYoZGcGCnTwJl8HL/8Nh6xI5Y0Xrs7OQahDRen5vqMogSGEvMWNPaZ0H6v12sEjNJnpRKYNEHYjpwgOre/2u0gz9I4uuq27J+xzvbx3bDrS/GoK2iBa0nyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jCaReUbvej2eyrJqLz7qdvo9wWO//WyaJ59QR7IITVE=; b=e2Alh41vC58viaZpaDN+NCA8SkeZVdvYOYGbUMw790mLoM6bY223w0gws7hNlyOrFbzUi2I+htpxiQyngA3gj25J4zZcOiR8L7mdd5J10YH9RYlBgcraBdZb/d4dJtfy1/sl9q+yyheou3FALDptOaLr7Tu/28M9Wr6iIMMu8ug= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYCPR01MB6704.jpnprd01.prod.outlook.com (2603:1096:400:9f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 02:32:36 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7719.029; Mon, 1 Jul 2024 02:32:35 +0000 Message-ID: <878qyl970c.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 3/7] hwtracing: use for_each_endpoint_of_node() To: "Lad, Prabhakar" , Alexander Shishkin , Alexandre Belloni , Alexey Brodkin , Claudiu Beznea , Daniel Vetter , David Airlie , Dmitry Baryshkov , Eugen Hristev , Florian Fainelli , Greg Kroah-Hartman , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Neil Armstrong , Nicolas Ferre , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-staging@lists.linux.dev In-Reply-To: <87cynx971l.wl-kuninori.morimoto.gx@renesas.com> References: <87cynx971l.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 1 Jul 2024 02:32:35 +0000 X-ClientProxiedBy: TYCPR01CA0017.jpnprd01.prod.outlook.com (2603:1096:405::29) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: 59d84ac8-9715-4238-b41b-08dc9976115a X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|38350700014|921020; X-Microsoft-Antispam-Message-Info: sSf5zA0FUm1hWTWr3MXRX33nZySafqWGUSomKFyEcQawYWGilyTFO9bedQthkYykF8yCFqe0DSHoLu/CDFX1teyzdagO1/BNeGfJIslwOKkkP/d/+Gq0w96yLINSlKV371S9XEBhsftyX4B3/pS31rjbscaQrkCWbZyrWVQ/aU7FFsdXTPy6x3/fZlOxl2gebNBFbuXtWFMdHWNd3tiU7UKL+Cvg7lznoGB0qXsQqsJ9tXKPOW3Zjt27u7gV+WGVQsqqjHRjLXTHk7iyYEo9+c4pu381ixhu4JjLH85VA5UK0Xu/220SKxvbKUZoDivnYAVt0P4B/CLl2whs9Y4pDUbXihsuodS0uHFxW3THDSShTM8Dc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ispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(7416014)(52116014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WI2tf8XxbDtMdXbxEmnraJobFIlYjKvMxnt9EwN8RT6wO3NrZ0AgU+/Qd9bl2Alx0Udp/wlSD09VZ9hYvPL7DlAJkDc1KzgpJcHoH9fLLEtZY2Fdz7iLBp7Ra2pwaeUR8i7E5j/RHErgk5omEWjCT+wASoH8L4dOf4cP+66QS/UGDNg/EhYfuCtngcC9lCS+mv4pZn1yIiM9PrFYZ3F7M2rYVMo+wwLxRNj+Hsb8ao+l2kSurWD1OSG59plyynU+DoJRvcCzGAn+Akf8/dst6/SI0JMddDiqxnwhMIV1a6FSvV/F3c3rG4Wu6QxGrGovUlQEKSxLQuOy8U+62ANLMeM6r0tC4NK8DaiTLBHl/5VF2KD7J1TsleDbOHGPCZi14cHTCHMa01qyiWeFF9miccJ0jsHfJTUTKcMrNRbyUJX1cRCq0FHZMiGnTxBzGdVSnQczIF/b/a0ays9SQ7IB4XcNd8veBYc7O5x0QrkGYaJk4nmwb+k+ax9PshTLxC8xrpkbdkZRifpzMfwHqccGeaxXxv6BrJDsYcEbM1Lrzat7iDo8odTlCCvdXIKuvzzBm/3wQXrIiwsuqGqBQo+rKJRaxXVGb/xUMXEBRpG7sVxN06JPdOzUdMz1EoCdqV545ztNZodafOxtByE+/fhC7jTM9opQ+LqLF0hzPsapjfRngO8K8wykO2vJ8YHpIBTg08ZtoJt9wYq1AojE+HIxRxkUCbEPGhijbikJySj+41yu+hnHkdCQzsb9GQEt+6YGboE+djtboFJ9x+FY5UiGPDu2WFsFju2xLkeKdcxtPbf6YDVPA3RKVhNNSW6QUY4MKAGNfoVMe5OqC3yaSeR2/1NRCEPTPjAOSck3uGuea1cAdFIBOroufRnmHnhbxcH6YtmEeg/B520AG1PSNlOGtEZ6uxHzRBQLNsBDJw9mlNqnm7GX/DdIG7VMeof0z+GZP8tnDT0kuhnXCYONZQr9I9xXlq0217CLVT8IlVAdQzJTN4V/MdXy2HLv0aGl+0k20D/w4sWom07xpdW4t8+obxXb97BaB0x3ik+jjnIp6W6R7RimbYQkVIKtsdH3VJSJZU+e3KofteA1zIWJpQbZRcnaaDleKcRQeRj451ckuYYslkEQybtRBUYaNTPaC1BZooHhliuXzLwW9nDsr6lpcLgdUMTtad7oIY0T0jI2OxCYqbiawIaD3CfVDIRqZtD96dbDCyIc0ZAqW+cKUE1shEOVY9CLNEVcOGeC3QIfjszWpv4npjkRMAYVFo8mV/xLRuAZosYJUuiXCACqWhVMcVAFv2/x6e4yMyrYIUdRW8UrbXYkZmLU0ZgA3m+moygFEDwsAr4Hmgfd8tPGiJQA52lkNkXKfh/fAiobojTPjln3ey7zUPPnLODqKvhSPSG0yYZ8Auhit5pL9Mia3YuccepN82hrXJUvxuyXwNNX73iKgXBEtSdqlmJj+sevxxGwwGyxDVWgaWxuUSfGoiUy+mpOdDddMeFJSBHIp/cfESXXteIlruyJ3vpUFGHyO9fc2GOhC/y2rF072qeQQAm7MVqHUkU+yOHcBmWnjx3gJ1N6PUDoOkUiPZ5YHdin/FDXjEIQ3cGaz2m6nwtvua38ydo3zrV+CSQ8bBpqJRxbifg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59d84ac8-9715-4238-b41b-08dc9976115a X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 02:32:35.7739 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xCI0qkBXJgMuK8pbxRJagOr3XMJluQJfkTO6nTXBlYAtcazWh5V2BN2WLLRyhVQAOdcDwIrPtBb6ub6CjtQryx9uwrBMxISseeja2duxVBmV6nlWs5fqZcWHAudO3lxC X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB6704 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240630_193244_783103_9E5ABA96 X-CRM114-Status: GOOD ( 11.25 ) 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 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto Reviewed-by: Suzuki K Poulose Reviewed-by: Laurent Pinchart Reviewed-by: James Clark --- drivers/hwtracing/coresight/coresight-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 57a009552cc5..64e171eaad82 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -275,7 +275,7 @@ static int of_get_coresight_platform_data(struct device *dev, */ if (!parent) { /* - * Avoid warnings in of_graph_get_next_endpoint() + * Avoid warnings in for_each_endpoint_of_node() * if the device doesn't have any graph connections */ if (!of_graph_is_present(node)) @@ -286,7 +286,7 @@ static int of_get_coresight_platform_data(struct device *dev, } /* Iterate through each output port to discover topology */ - while ((ep = of_graph_get_next_endpoint(parent, ep))) { + for_each_endpoint_of_node(parent, ep) { /* * Legacy binding mixes input/output ports under the * same parent. So, skip the input ports if we are dealing