From patchwork Mon Apr 1 00:05:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13612335 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 6B355CD1284 for ; Mon, 1 Apr 2024 00:05:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C076B10EC4F; Mon, 1 Apr 2024 00:05:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="p8quwl96"; dkim-atps=neutral Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2099.outbound.protection.outlook.com [40.107.113.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABF6110EC4F for ; Mon, 1 Apr 2024 00:05:47 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J/sYn1xa9o1lp+hDwfD62SrVaQeJ4LnLUhefvm0hMAPOzZs6tqn9v5Bzda0PsLdJ/vMTuk+QMGfqjBrPHafiRspaYueV4zSTGtWQr3x9aEv2HdfqkeZ5OmOd4gXwK1VLSF8LilpiR0e40ka6mSlCvlxPVAdo4qZYuHTv9mN9Wtl01Kc0FThJEUeNOTgMt058GrRoFmo9qkG/2huo5oM2Qt29ZXLjbQys8ryliux2EchkWI0vVShoeQ3wcitW2d6eXL/cxywAb5MsTHHIABxReSnjweQRorCkFOE+wfYLc+JjwZW7qWf4oh15X8ApsL94UYMFvpvz1VJ4pzNngZapUg== 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=+bbQqXVHzVGktvMbxdHS32qeD6T/q73gw92h0AbcRqI=; b=iAJkfOb5TWvNzvxH4cK1TLXtDWtKThWkgIntLfHGeV1AQjqlZDvYTlWEo6lyWmxBodHNy/l0UPxfHAWKY5tll1hfVLHVOfO/2SVq4s9qdy9DQGl5u4H2XUcZJyrNzUGZpqvsXHQ07Az29VXiKmc+jR+AhDxh4Ur9OG93KUwJALkS6Zn0BQqrcmeL5vZARCuzIVIY4Z9llfIyaBVtGfOYpyZ+fTXAI7z0Yq20qNCYE27zmR/7q5+3YV4TeiEU55a7jbtCo3+ohfFiy+Kf7KIFLyv0O9QHUVS0MB7VXAs1d2y0q/zdEpytW87u7d9qlNKjYRn5i0esXLXKXruNbiQwWg== 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=+bbQqXVHzVGktvMbxdHS32qeD6T/q73gw92h0AbcRqI=; b=p8quwl96SpT4pWYbMFKdGaD2aW/BHsQ340VG9W0saInJsCnHZEzA5YoYLQk2k43pfWYsLewGz7rqtDubV28CqQ41d3QmPgD/MjWiUcEkRZ9/9PSFHDXsb/jsDwFomIiyNVZGPbgMmd0zDCdJhtlrr34QHajJxtUn/H465VT7RwM= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7826.jpnprd01.prod.outlook.com (2603:1096:604:177::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:05:44 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:05:44 +0000 Message-ID: <87a5meueuf.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 2/8] hwtracing: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:05:44 +0000 X-ClientProxiedBy: TYCP286CA0180.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7826:EE_ 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; X-Microsoft-Antispam-Message-Info: 8CuP2xPC3JSitKax8y6OSBGdo/AFsaVNO+pa9bniysqDWI6gwhox9dgKoblnMd8W3Bm2XRadsusaJZCaq0gFWv7nBVhgpKr122NwDrDjRKbmtI/8mdNxqYZUA3HTHTVbLQyPDC+8N5U3UVK9J3nJZX5C0yU0wVpizn5DGttt5XCJZXnZTlY11T9Zit4/0gWHrBdtUs+lw/EfoTYmyXmkGpIXPnyiQUFdQKhv5g+tgW0auprOp7QcQvLFkVoAF/bulSdd3e6qsSd8kNBJ8oahuvGaPV4f83s+A1vEnHkdaYCMVIBQb85e60i4Us+ge9sca4mQ2rU7MQz37eLU6vDGjN/DKm40WxvbrVe1etvuJNyRWX0fOf4f6BTcMLxHm3eEAw4FM8yVhmkNm0m+UPQPrF7hlKX2Cr9kyMDHnFUCHFsn100K8MCRvTJJOxd8sjYw+8hEv3OdupcIBskQis3cUKFd+eky4ajINdNEn6+xxD8OtQ2cTwk147I5k1cjvqCBCTYWe01mkeRlHUR/ibSq6+ap+6hG0g5iIbDcUMrD98EOwXYYodQ7XWjToDwLigiwDVYj2TIdhrCsSIkscJboKXBXiQjXU89v2SBQ5OIfgcBQqT7mb3dha7wFgArB9nm6Pe8yejkfdJc08AakqauxGf7Qql1iw8G3Ic4oPTObORh794wNxMpb1lti7oA8c4ZD12XGArSFEKydL2d9Bni5YaoP5w0xcSHer99+fZOTba0= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DshqatcAcmBb30YHToF/DocQE4M+miBR9K8GfvHSUMzN8UuR8YJzbz5R+zkVqvMJYwax8wYMOT4ZblwOJ99G3sjOAdsnK+EdGGqEsK26t5tOaPsJJ9SrsMiOpTMUWGliK0S+THwHzQ2Wl69/CW1k9AHACOyU6VcfX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enAh/SApICDfjlljeHFQ6JQ8fboh1hUc+RBKnNNSZfppx+Rw91+hLFFr26rnnzXv5hW42KqK1P/uIrZJymKfRow8Je/PTwovkTTCq3BtbCvVHtqbvAdrRsk5sefvQegCNQD+8lHkP4kDzdjtc7EeYgTphymUIDkhjaEPtvvXyCy2520NzBtrJi6jtvvj3dgUOojpzWj2dssD7hDvySWIrocF47F6zrv10I06kKmHugsDBobsP1kBwElpqp0CihHpFltGLDaJCFFGB+R7oarpx0v4yxZUgThZWIm97jqdW1+D7l/cSl3cJnertqUl301M4MxqfQdYrllatdUo3Bjd/yP8NwSSZxxNQSil/GeI7kIzNGApd/O5TuRtrNJNDWjgLS6bQXixLvC1FjrY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3b86dab-1369-4e39-d494-08dc51df7a0e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:05:44.8464 (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: EY0Guv0/G89AZOxsGaijSuAUUuZXVnJ1gJJDyrOwQD7IEHYntdJy74AqTRy8yK83RtR89h9g8zmOF0NP/wnd+aB7eYDva7NqksWJey/hbwpWRq252bEmI3nCu3ui1F+3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7826 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 --- 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 9d550f5697fa..e9683e613d52 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