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: 13677560 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2084.outbound.protection.outlook.com [40.107.114.84]) (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 34DF71411E3; Tue, 28 May 2024 23:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940537; cv=fail; b=qkDnKAL+YEzygYUfdBEuzAu91FSqIbwHiMw0N9XvPpXSSKthuUl3ePOA0xn2tn31NkX0D/dNElVeHOWI4HTEpjZMmK3UsbPzIWSkgluWJ146hZ8PwX/rBbNiRpyy34CwUTbyKF5j7eHJ0J/0u3VQOreICQbOFkUQ1GtqzbL/YGg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940537; c=relaxed/simple; bh=0HScvF+M5ojSDktqvqOoLC7SJ6NbBO2xvvrb9zqVmaI=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=N2lGFwi8cHV+qBdo8lSMwrgTovCQlL6cQj5RfP8B99skB4OlaVueaT0L65xNo0NUzk2KhdLzo9MKrb+KMQ0g4DOK9poc9DzIVH1G0zT7s9XoAueOBkb5p+DOd+wHLcTnBCsYvPAXUptKgZ5R/xiDiPlqEzCFHCgbiWR9MFUuzwM= 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=dMcwoEME; arc=fail smtp.client-ip=40.107.114.84 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="dMcwoEME" 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) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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/5olpkR3fKOHYIqa03BVZQuOXPpN5mZK7zpwO9L7AKu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= 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)(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 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