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: 13717490 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 3CA00C3064D for ; Mon, 1 Jul 2024 02:32:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB64410E2AF; Mon, 1 Jul 2024 02:32:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="e2Alh41v"; dkim-atps=neutral Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2082.outbound.protection.outlook.com [40.107.113.82]) by gabe.freedesktop.org (Postfix) with ESMTPS id A78D310E2AF for ; Mon, 1 Jul 2024 02:32:39 +0000 (UTC) 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/CLl2whs9Y4pDUbXihsuodS0uHFxW3THDSShTM8DcNrR+9wSQhSAu7oiyp/G3QV6dWbmyj4PP5/pScGvfyHrwKtYKNv8rSeiWhLRC+y0oKxZMAB8oen9TA3mJFlRc/uv0E3+K4wW5ShsdL8+o7vkTxn8tBaqr2yyyojek52spGxZVMgsjjQGBkv/Ho5ws+qVnmcdgtE18midh4Hakx21dDZPo2NieF/KtkxQuJ/TnsBytfw6j6BtZi+uv7TsUU9ofcu1ZgMb/XPea/74iO2LFJ3taoNY9dqorlDgqgpPJ/2pAu66U+B9nrrMA+8mXE83V13wDIIMeX35QjFPIXh4XmrCpQpwpI2DfmoC52KyUpWobSXsUa70pe/FZSIsZr0iHRBLC1SjKrslX+0SN6E1TYexPxZjkA7hO1e94cj0FiVj0mUH/SIOBLRl5830QATCbBdthBmuz7hjLzYhzPYlfh53lwUtkBTfLTh8tR7Q2cQf2pk2n19E55NKEXWmdlU0pIe//fR6oZMM9pWny1wXRHmLFVosEVXTbwVxK6I07gi2LeFre7BEWUNwiTmgUDktzV397hwsUwUyBKItAfA7EUc7JpLiC28IkqiWmFGumwVGXC8ntTkaU8Wn5NzoJ51iktPpB/QamQZATqlC3gLiv9vy7k9fOTSwRJZbW3EofiLFpnBShnNoM2EOtIN83eAeZ8lBAlxVOAF1hrPmpJc3RHivJCPXGXJI0sp+JpOHcJc41wzWfKQmTmP9UfurzkX8vgBOrD11X45dtBe3rsXSkpdW1ObWTEhm+Ql6yQOWbHWs3mnmzpwi8LxolcABFqLiwe3fb+2W5hxONjYKVQUuuemvfIg8y4GMniYiv87YQau0QQS4Co+ZsRvwHYwWnfwbJiUfXp6PVo7qD3j3LpMiV2hwsXypSKOtG08Ubd765H7XuD3Msfz0DW7nAHNn5Rc+qd5/bECqsqZHEAqOsqjonGAK/a8CutXCSWr/hhMl76QzZw5hNfk5wkKdeSUMmv/vqmUlP1sjqs8diLJ4T4EWpqmULCnPpufI15B3A9j2vJvEmYGDbwdaznCLD7oMJUom86vw709ubplspL+GYwgLGpQtwqiaysGqL7Q= X-Forefront-Antispam-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/5VF2KD7J1Tsle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j+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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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