From patchwork Thu May 30 02:05:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800426 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2057.outbound.protection.outlook.com [40.107.113.57]) (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 2346B1B299; Thu, 30 May 2024 02:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034761; cv=fail; b=IWk7dB4wSnlHTey5vua0OZ51X7yrDy/gn4Jf2mwVjK8aHxRI0I0OxJm6R2Qk8G/54O5MywvLbBPVQRIei6CBD+b8tjKEAX6406e/2Oomb+0dZ/YcFF/oVrC/8LRY4qcLuKjZPPVkbb9VvPULy70gQWrsVYAEL3VYQ23Hppw6N7g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034761; c=relaxed/simple; bh=jMWV2tOCFT+tH5YSEcEM1qE+Db6K54NPiGd0CJ3jOh8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=uE29EmN5ZHxYhnq4bTAjV9qgQqBjPgfjNlHvHVRdl5iw6/d0ntV7r3YJ9/GXLj6CTqaT3zovsUJQmpwCUUhOiNjMLvkJ3uv7AbrWJhKCCrK4DayfQUxiq2JhnpANJpXfJSJthsnAS2EavpuqN2o+OPaJR2aLRtNpnpGlSuq4lag= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=EYQb0Lin; arc=fail smtp.client-ip=40.107.113.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="EYQb0Lin" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nabz4HtLjmGD+J6IcrJdRJnGezr/i/wQxC046nANn600WngzgxGdAKdRl8Dc+YJMG0Xh/TLdzGuosv/utkEdbvBvWUBXc+FoxwSh1ikcSYqi/ppqITB6+XZknQBJrPJP/fVea8GprTrSpqJlU7teDqj+zI43aWwCI+wyhLEFwJ3wWs5z9NGqqPcKrmfno+5V+sNs3WwFWoVKKyVUY1oxlT0bnLobZvxOo6stm2UFLV2zx3l+x1Iy7QDrmTcKt84Yj0WivSOXIb79nRHV14eQ1FWcGsqyg4spuV2tKdI4EtjpBVnKXvc6/+iRBLmVroJB2MNe24iQ0LKV3ZFPBMUeTg== 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=HChtLQI6wwcXsNZSC96qHI+6WzPU8mBp6Sz/QBzrULTfH/QFZNF1EM7juQLbVeqIZnFAdMwHVoRCaDC6vj7kAE6CR1HaenEM1SlYna6iq94K23+rRMvD+/txrwqzUwpe8kwYVoj1tGwzMYRDtL8G5T59PCE3vOD1QR3i/xmPfdPsA3vgMCUbEaavC1LYb2QecVmmAHnZyEJNi1eMQVxc/TQ9VAFv58uZmck+3iq95eve3NhkJJfYY05o9m4XC81XxOaKPIvnPve6uHaWRfav1r4H+6amr8obzvXc5SKlLxJ/qAyxj8zolqQAIAs9JWQpbobhs7AOcBrPiV321UUl+w== 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=EYQb0Linfzskw4OyxANtjtykS445NLrSZaxWXUCOSefOD7tZerMw9JTx0yTNWHvrvja8tAZE9VhzP/TGXlXhXSjxRUZOr8GMLbtA5RnTbfHCqkcE/cAd7dso2ROrybcIzP+vyA4oF4+Bvi9svuHIZm98AHmS9Hx4Zy3oqsUcNhA= 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 TY3PR01MB9900.jpnprd01.prod.outlook.com (2603:1096:400:223::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:05:57 +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.018; Thu, 30 May 2024 02:05:57 +0000 Message-ID: <87h6egoxyz.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 3/9] hwtracing: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 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: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:05:56 +0000 X-ClientProxiedBy: TYCP286CA0333.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38e::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9900:EE_ X-MS-Office365-Filtering-Correlation-Id: 808ac797-d23a-4214-04ea-08dc804d0b59 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|7416005|52116005|1800799015|376005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: qLqJmg8w6SVpcftne/4JlJyrmpNNfMDp73jefeZjYA9wLOtG5/+FHYSlM+LmXY6T87XYjIAxEr4hRJLk8b50als+imPsWiOtkQrrUmzMjnEo4qITgUpkvhrRhnsv+rirVk3/RWoR2ejoFIFJLTlPfZ1Q0/bMYnKKZkMzYBabSK2H7IrNPbsHIN4Wpn7MsfhMvcYS0DModLlwIBalV+t/zc9APesXMrJ5YDxKIiMVVGz1QaEIVnvDozRk7zfz/DsLJHlolQbde0KK4OrCWZV3SuM4BVK/yChl2WfaN6mvbHruIkqPlz6YGio5/Vzfi8mbF0GCO9o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255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(7416005)(52116005)(1800799015)(376005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qJ7btPrZmA7sdnM3P8SowIc78OwZwQCkc3w+mrXKTVSzcAi4FncATVcg5PqVBz9dC0WTskqCLZLhoHEo+0kBBr85UK4N+aC2IQdrrwQbN2wQ5kWylClnS4pmvohdpLgTvwj+1lEuqYPcCC/JnVG+YQ7NxT/Dy+u2CkhYPDwyMCf7Zipt3v8g90hv28A9f9Tf8RZvoALLYNCbgnJh/2wyMVlIi2BBqNgn7SQirDOqnmPgFjSrrZrYgXns5BNpENCFehl8X18aZNnL5yo58+o8O7kMv8N4BEiY6vkLhxvVrIpkjWjhOOGPK58TDVhy3MRYj6871Ze467Bkty6Pr4cPXHGXq6NJrW9PJgYd70vvQknwawZfwmsrBxb3PVdxQWtpP9RFMNPJM1Ggw3YCIubWeKrfzVOKa9DazfefidS9Yc3oD4xf3pHsuta70a3FG+kdebL60P2HkuLaid2aeeGqiG6JjYQkmM7jayo+pj3y0TWOaDOv9Hqw1s8OQJFS5e432f5fDcfuQdyBNUoSV7i6q5PzNftpUThGiN9wZHAecQpCla4T3F2RluEc/BpO/91nBlHWKxKvRg5YFiJLeruu4e8K9Qd0np0A6hhUmr5PWG8eeHBnOADIDBDB+S2zUkESpgOpV83CK0cIbcfG/XJ8WEwtyVaxqcMccWJU7kudiRZEEzoxd9Q70wZqfsQ3Mj7cLk2m3alMwcvuxjOm0JdVau1tmBN68sM6g9Jpym3dBDFBUGlfw9iE0N22B5kDqWF1/LFgqAUtlBoz3P4Ebq4bNlcwpI+ECZq9porOYpUSyBZlxp0zHppNlSHUxmdNzdxT1tmQkiFPTwrAKB3Cv8DKkRK97WAN1N5znDSt7ACeVZ499aTRgrhLQxi4dl/9qdj03WXJqttVBLbPGTgYfoX028GVoSX0oEGQwSkc7OGUBeQqvajFylQvq/lmv2DX9N34V1zGmLnhrMhiXDNPrBAPKHOZxui2OrfGU7O/uK5MILSRlBr9bzhsk3OJ9Bzru5tvWO7d2KFCSKMjnOUjv4/aWp+lH1WZVT/zmTniuCt1ZRi6UI9wibD2nkOSN4WCl993g4hlY4R7ESr6X8QxVWLs3z3zmotGruOP8kHh9+I9sNh3opsTnSbbeklt5gOgkD+/uKZA+ViwHu61VXo70yuHA5rQ+iNVu0GBh5iqmDi6v2cHLNw9dL022PWlnLFDU3vfQF3gT5TZ+1c2ZGeax/ERZmwu2BQJQcMy4f3NlZkNHv+Oi+IdJ6lqSIbm4EqMaQ0C741cfFOIKmVb/aY8FTGhUs6pdFr3uB+41lgzYPyBzX7Dka2+vvdVSmlKNSWC0no2FzPCMrgSvpY2J71iQ25hI5lb1Hsby8uxpVthsNJqwfMDY5UWxcUUwv8QoKMygfYem5C+dxOVbvd0IipYGuy4tcmSf5yI4MaPlQyst2a3byBr6J/c44tcmrHVIxs+Pnyycz5H0+lYM+4iNXBSnHb4ciQMl6WXnZAs9vbXxHVF8cJctmQmKzgRbkCWLLqtpWZTispPq0EdNbASE8O/mUlW59McH4uQ7QN8B+XrJT8VfSm0n7t+L+AGMl+XlAfu7/5svdhUoE3pVlFNJfku4WYEDC/7q7Z2sEi/ENUobp1vXrw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 808ac797-d23a-4214-04ea-08dc804d0b59 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:05:57.2049 (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: F7OVuVHKFJG0aEFh+J7i2I7JzG3EyXw7Q4/dXh9OHupdK+k7DAYh+SXMJlnnHtY3A/DFA6fO2PJJg+CoaLH4CtjupU7ucnGF7ebfOK/S0RYr7W1qWgMxmVVhg8ZbIa9m X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9900 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