From patchwork Mon Jun 3 01:18:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13683185 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 C350FC27C44 for ; Mon, 3 Jun 2024 01:18:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E44110E102; Mon, 3 Jun 2024 01:18:19 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="FjrEG/uL"; dkim-atps=neutral Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011008.outbound.protection.outlook.com [52.101.228.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9367910E102 for ; Mon, 3 Jun 2024 01:18:17 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J+nY7WJmg+HQT5cgpM/nb67Zj7IVdqlvk7G8Vh8WXtJ1PjH8u5lM5GTAf1Kmdps9b5wss61OZpSkZaBXIIsR/uwmh+5CTP8NXTSgJrzEu2TCHJVy2KYkDVpTHosdHMjXVqU6aEXYRrv9/osaSfe00jLsSkLb4KJDjLT8nzz1ZIYUaSPPMpCfzhcnrHsPUrhXkz+g1MPi1i3RqGAVX8MI9eQFaEO5Sn2Zi/NUCf1Chwo6UjZtqEgGYHy/Y1z9oZ+nnYuTqD5s9Iq/n0foqC9OOegKstS4de7NuRagGmEch+2BX+j7GEsGEA5JqXP2ZtoXlI+SNRPNP0lJPOuJBwqSQg== 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=REllXbKiXbTph1LoY5sZTemVlDAhDPlDjVQgZtSkG30=; b=dsEYSD7Dd27JRMwnAGY8OHrEyJa60001Vrm6I50mZv+Q7DuK8Nmd3FEZRoOVJrTdULwshB++i0ctcdf3t+pqQHI3I9sbd643XdBYgfRfEvIPFe7+fy6r/fo08ykOItKWw7RoUnGA+84X2FRLqfAEwFL/BuoWft3oodbvEBgnFOFAUTOVw8C8A+4WCJoE8aNP9ukbXXqwC9S6aEcJqjij0q3A/6h9uslwPZ7jZERrF/RLptTM2WE/QnutXWh7DKzU5vZVL8Kfn+NxblCdnyOoEXW7B+862O/OM/TEvnu8stLwbLFX1D8K3Hh4Xe3MnUl61cEQ3AhjrAJpzkNrIga+Gg== 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=REllXbKiXbTph1LoY5sZTemVlDAhDPlDjVQgZtSkG30=; b=FjrEG/uLwrQ5KsivEjwp8wXjiO/Qb8Pkmi+nvYLqBxfJWE2wyd9kM7uvFyQBhQi0QRdynXSK8pf1iAYRFDHvjs4h8VNxXzg+o9ssOj1ALY2+1e2Q2eiL48wSUh9bfUjyJ73HEkNiGX1n0ERDer+AjB77iIBEMAMfm+cM7WHHWt0= 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 TYWPR01MB9479.jpnprd01.prod.outlook.com (2603:1096:400:1a6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.23; Mon, 3 Jun 2024 01:18:15 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:15 +0000 Message-ID: <87r0de4yeh.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 3/9] hwtracing: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:15 +0000 X-ClientProxiedBy: TYAPR01CA0053.jpnprd01.prod.outlook.com (2603:1096:404:2b::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9479:EE_ X-MS-Office365-Filtering-Correlation-Id: 33e6b40a-8e8f-4fff-6d59-08dc836b0b33 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:13230031|376005|7416005|1800799015|366007|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: bYMWnG+v/jlR7xJwqBuPp/DHmbFsqtin+uVdL15/JKucXSceR5pPICNY04R/Jjv1wq4yynLXh0C4PC381ImDWT8AmKA3TdUEmUYE3D9KSdVElxKDdoNOCs5GTKx4IHtpjdhIJM0hi8HqJz9p3SfbNtGtt5QQcj3g8fVG8onNqFC++gt2mNrWMls30GyeFKX6HaiRC6GeZhJpjLM4J26fo2r6sRWM3gjZirrV3h6E24lTEvWsS2iZe82k3zCPNzqQIaToSVOmavguNdNEudWgFlQzeFUIyajGe4GDpOi60auYhEVz1bsEgg1kJ+9B0x+ce6KXTVkWVj38e9Iv79ZterxHKKsWzDeNhfgvnaMTAenJ5yVYwkwlOGcwMRCMGYYyX/4zvyzTtGA7aqepN78pQJCOVB/wCoU3BJq1zkeWX9SzZUX+/FdsPcC8UjNt3M9Z9KbN5izNh3RrcXILgnNxLzWoLAN5vFXI0NWQxI6mCbM0Uv9S5rjox+xGEUIj8/SGwa89NHHOFONFeEgbwBJ+l7w25Q2teEfzx3gNn+5dd946eYHE7+uK6G9t7VsfZMRB9KtuTJSyjU5+vK/XIC346k3pnV+jVF85oa+VqSmEBAORwGuhTCQLipo9vLJs3PWDG+6lPG68CSMylsyH92WpYzZjKo/y40eiribesTOo9f+LKJcU+WozuaRaacFCuZ7kfdW9gw4GUVBVIMR13v85LeAByINmobnxnzRoEuH1trTXJjdQZBcGGxu0ZDJVyTy0WCNPwGqpT7BRnxHTw/6HXNLRvafEeIrEs9idlXJnoyRteSWZZIPa5tVILZTJS2S+p1Cq4OqW/iDwm0/jEmwur4OR7Mouc9kOVFgzQRYXyufngZRz3aP/ycpQn6opCojsAEwNp1IpQIymVmgD7bRNVHjuQAXJmVcBLeBmqXDOgdc1+HfLczUfmwXYu3kppnG5wU+JUlqhADTIMAIu77CknBOnUCqAuCYzVxKLAVQRKmzgid+Sjkdsi1KNgnQYyIbeDOR5NkeBEUkpBSvie9LfhFxafRhabdKZWtnq8DunqBAd79N9EnOTcGMfdfdRKXWsaBMgKpbPxy4P8lpMN5k8q0dAAu70Tey99ixtEifd3YFIjCYdEPk9/47cWawikxwHE8HtAh0nnGwcA7Yy4LItyIPCe/tNtM1EnTpJYaOC8jRcKMlxFnsQI6DMeAPtsPjSg6YRJIaWDrETUviUfVbegS3iN23Nhxm5UaL7+ji60PlxawvVFhldi9Wg+CetL5uW+Y0vb1O+vdV84Kzf5IkD4iY068UMexj5UNgYAN+OrVLWwgjLha7ULqYgMZ78pdbQG5lXncOverF+Rld/ensEEn409J9TWfFvlFCluEOaC5c= 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:(13230031)(376005)(7416005)(1800799015)(366007)(52116005)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VNzVercjvde8aSXTF8K7yqIcAagzJ5hp76o2IytoDwmBgZVZEt+ANK86OGJeSwkToUHaZmHLVS0QIVvS3hHd/bgRm2r2nsX0TyhxYqvJ2L7nHDlKoUmGGpB1bZkmGz1k+wa86Az5Y61UrIFT9mhaExHzxvbCKsA87xCHHZ2b537f74+5A584jsJ/GMcXrhGYcfD78Cz/NVyin3P0arC53Yf1hPOFsj5ZL7sai9VvY8Rd46AgE+Q1ICwSeiPmC2AP5MIdEduOaw1Ru+0DGKUjELNMDIx3CJfJkil5yggOUeExdtWaY4VdebNkpkvCA+wK+yNDozS/+45RhWfgi7R1/n+DDGHpoTPVu59Csn+I4ttb1aZSNCNk80t9Wc6DpTrwbGlv96WW+FSEC1bPzhUk0RHRzpDk8EGUSuZ7BM5P13l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CHh7c2g5mJbUDvvrzm+2V4sJV+tdYn/EhHr5EZTj6HTxqWdXQkn1b+vnyLySANdqINUbTjZDoeOCNCTqb9y73akr1Yv2jodB3QFhtbRbGuH81ZXDXOykXQ4Pp1oOzrTSA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33e6b40a-8e8f-4fff-6d59-08dc836b0b33 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:15.3517 (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: DyFMt5AirVVY39Jd6xIgIB6aTxIk1OmFXGYsIgTtu7wK9pj3Z4Y+WX1nCILiucLRKhuM3VfUJsqGQ50QAwkZCrwB0DbYgmpA/boVKWwevQZLFOm7SDJMkPhQ33TH0mmY X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9479 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 9d550f5697fa8..e9683e613d520 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