From patchwork Tue May 28 23:55:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677596 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 CA9F3C25B78 for ; Tue, 28 May 2024 23:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:References: In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pJiCcTa5cFZs/fgDZY9am883Qa1lJtkMUg4iokMWNyQ=; b=AbIHFWebC7fqJdzBSuIs1vMriG eBm43td2/2cCw4yFvM75l38PUMj71jX+JuDSvm3eNJUJQ0mrXNp9CcX7NWfb0VR0+665dZnVFPrPj E9ed4W/X00aHuD0+i4Ao04osKif7PIcBq9bo5y5EhYGuOLV9Mb9FBNpJlRNh0P0M+rBqprWoZQ67g OkN7ggM141PRZq2YKvX4XkIbda64MK9qI2N15t3LsY1YyWOhWCH3iRQMRbcYUHBmiHqC/SKO8fe23 ef4RT5idIKpfWDddrTNJCoiHVwMcgObVsbW04/ac86Ocdctq3iIVrqbavbsUuSPk6+vxlJ9Z2kynw THggh6RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fW-00000002MOT-0QW7; Tue, 28 May 2024 23:55:50 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fS-00000002MKy-1JTj for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFCzQF2k1boJvqPhNPM/6PnY0XxJGTSMmSUXtcMKKXJMIudmBB2gqAhffFozmP+b/fHClZRtV3SFI5kP7OM/p3EzXYNdZomSbg61j2oj+IKxqQ/657gnTTbpezDZUzkFagHh6EMlkX9qwT6ciNWW/Fmh04YlW8M/1kH/B5ZWaa1mkanKoZthe7p1pgHpjbUXpDj21uGU19O0pkHWPdJHMvwNarPxmHXR+bSr8S/FvUMyoc9Qj3KfmJ4EhNyReaexubtRD6fgYUUJjshvd4fpUzFXJjyNm8joK6e+9NV1dYF93gCFMIhsXUAm4SOVAAqnFHE6xq7f+9a+d9sxZuDcCQ== 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=0RBQqFYJ9l6oUjQ+wE7YbR54LyNIP2FkkrriFkT+5Fk=; b=fBirR+70GRfKURj4S0UUHRRk34gMcSRbKlThrsgzssuQbIxS1cenfJh/2eeziYTEl4T0TNj/2iw+gZMLr+vaemtU9kIK5dNjQOvzK47onoWJBg9yNF6Tmm9Lf3C9/0IMhUutrh5D3RrCeY56VBF3ueGPVKh0mKzGtbz0UzYGqgmo34ajPC3ykfwtH6rhYlmSA2OrvAohk0zK2M26rYhCz6qu6oO9SkG8kJnG8OIeGZ1XyRC4p3V3t2sZ5L22yr1Yt2guRyFqsfZpKBOiTxVER7qbGn35eVoOZ29eHOOCZsZKYTV8vFFfiPR5Uep4AdbW28k6BmphecuutWhrtZzYJw== 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=0RBQqFYJ9l6oUjQ+wE7YbR54LyNIP2FkkrriFkT+5Fk=; b=dMcwoEMEqiba/Gdncl6dx2DycToRhPtG20FP2t/CcIZYXZGnqAsXWzP+WISJSQ37ClDnH80jzydcj9WFDQ7Kw4G6cMUaKb2+XaYFl08gpXH9dY4XGHKqhTZMDTpJc2pST5yibs+hPxL4Dhpwy/LXFCVhRYNyom8tBR/QtqpR60A= 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 TYCPR01MB11224.jpnprd01.prod.outlook.com (2603:1096:400:3bf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Tue, 28 May 2024 23:55:32 +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.7611.030; Tue, 28 May 2024 23:55:32 +0000 Message-ID: <87fru14hl7.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 2/8] hwtracing: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: , Krzysztof Kozlowski , 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-staging@lists.linux.dev In-Reply-To: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> References: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 28 May 2024 23:55:32 +0000 X-ClientProxiedBy: TYAPR01CA0166.jpnprd01.prod.outlook.com (2603:1096:404:7e::34) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11224:EE_ X-MS-Office365-Filtering-Correlation-Id: ef75b43c-f816-43ed-530b-08dc7f71a937 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|52116005|1800799015|7416005|376005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: DhvhBd07dBUaBqXmcv6cLrnEIKFAuAFSLBEtWcw6UMSDLfBzI2pzfRiwPLILnn5JXE1rdl8ZOORxoGyX++loyJMQXNYLKX9Mn4v1pPwMLh1S+uGoW57i2y+UZWSc+0UyAkPuPgYn8SodIVuigM5+jVfjA+LVWd3qm4jr4z3Z1KFDD70bieLpYf88iYjgdDPGtkweQboAIo1I/yqT372lyL5H/ZkqZ5JfRnf+2jTJnAP4H+qH6MOwknZXphze9YYKrCXn9ljeLRUYdF3ei/5olpkR3fKOHYIqa03BVZQuOXPpN5mZK7zpwO9L7AKuBKWcSYIw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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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /TfmRrj/YD4Pg/kFDksrUiNNAHL7dqE9gb24ZncSlI+SB9CEh40aUFuSbUcWGIsnaO7jeKH6eFejttTZykofgGA7oSq3rwHQuCNckwga/o/1WEDsgEc/Xy1xF0W7KAYz+u9aomVTqsTRXECp02AwKU16hhc1aVLkjAGgBp7VY+HU3yGxIlQr2701sbBS75ZLL40mbkup4nYle4lxu/AfXGyDbGC0pXJwhDDwRkdDIS4dpljKWZqAkFEcDX4yT1MsJav/8v/FPZ+Oe4tA4eHdtuJo31OTqgQi/UEUEh0qwog6jvzUxlKNIwDLUUTRNXCfn2vGRwdjCPKisbQHwdnYlRCXXiAE4zEBXYu5g8kTggysCIkeohfNbl/9dvSaYaILZRPtYrygJykJ/VWTRiVBmKQr9HAySAIMSu9Mekcd2bu1vzC+Gfx+Vs5PsYGrmLp5ZhFk9XBPOjJIGhcp4qwF8gXnxAImkJ0bDTkpik+yjX5BCdSFjJfcHSgSRKczXZAt7Kquf+jzkR5/5dEP+w52FD0hIMI9b61mc/zWitPd7RI0rjLczQbTog92aOySRIeJWvaCJx573wgv+F9EgLQu3iVofhfavOd3M/pFsto1jEJpFisr5d3EkLu5JRoeDVM53GGIQW34xWZpbzL+sVk526dBWR0ogiSpRKhYHb3lzJ3j6iQizGI+DKAEVX+BL/4jeLVlfJUkVtWhp6hWW9oHWV/wylR5EtP1KD/ECYguQt4LtzZBZUDUxotA4HW/9lLc8zApOv9ZPCxL9O1B58C/hcD7VlSH7djwLkdNaWyCNsOHM6ShXkDA6vFmc16Y/28xMyd5tLbY9hhM7uWK4AFW5nkRaYB9+gW8ciSYtXSZFcpIhMGw9Wt9sVqdupY3FpBfqgONdJldVMlEHWN5wm78RespZl+HySDUjw9YsbtLOJ0W8xWwA3kcqanY0SIAsVEPzSGPW8oyn4pYqfAciT6tTYUezwibNxKEB2QPQrcwqG1Webzx7mLnYf7pHmLsmM6VBNrWO/psuN903TmdFCyqd/I5cOdzq3cOgsD4BsM9oPEzgViOXat/ieOCKLwVp1z2aUs3AqoXsxCDXq0rIJiZEzKTxIqxL4Q0ZE0JAPlW3650tNQrc7ZNIcHtnuMgf6GNQV7z5XyWDrJQrcoVVQ4JG5oxCpFDuHHyx0r2+z83Exrsf3dWzz43voaQDnNonpUN+cJdSV8KibHU+zJainqHP2PngMlHPOS3+l6mFskNT4np5QAKtE10iejHskg5tqRxK/BtfVk01by/ahft2z7GPCsDfweCmfdRVoFewacbW8MNOMvGg2Q8vAy+k7+QLsJa3yRsgvH95DWxKso7p0LelMAV9GFDsHC+JOYfcPB2OdNaJtyriWWowKxq/qyxBbS9UK8U2L1x/uxUmolT3KxNJ/tx3957WC4bUsECTXWO2amKN9mJYBCo8JwB7JqotlX+uhLU4QTjFq5JchVZxLWSq41HvkMRkszLidhlNp/SQ8mguoIyI/Uwlm70SWCzav/tTauLbvVlYtTZZYiX7VZoVPoVD1MJT4GTho+41f4CKvGelmbzKjypSBFeV2rK0SnYkA+KXSuCgpUWLm2ywPaCWKn1fTyaiHNsbpVe9qoTePM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef75b43c-f816-43ed-530b-08dc7f71a937 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 23:55:32.7738 (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: h/IYjOisvwzLv5n2Vaf318afUUmSLza+JffSQv2LTCyC+tqzxQmff7mbPyI4Wtnl/37zSYmPez7qDtZHfm7PF9hCWIkIhKJckQyK2m8MCoZ6HBCeV+V/UMkpPNihWN2U X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165546_442043_D9D93A3A X-CRM114-Status: GOOD ( 13.03 ) 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 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