From patchwork Mon Mar 25 03:05: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: 13601114 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 02B31C54E58 for ; Mon, 25 Mar 2024 03:07:01 +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:Subject:From: References:In-Reply-To:To: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=zNhI2fyKxVXHS7W3ISUvDVpQ440ftX5M5xVioZH43HA=; b=IEIoQJ6eT67ZXubVSYcckZz6TH azoLkyeonUrNIHBjL7eChlr7I1hsd530u+82LNDdWt3Uye7kOz8R29PI0pADxXJ/atR0DNZNGnFO8 1Tn0vVmFnDkIyvz9926qKu+mxpo2tuhgLDZadXBNz7yLRQgAg+Je2WWQvGsCYVFKhJxn1CPSqzjRA HmjzI5LwVDkHAtmzKr7XHePMWEZvz9DjFsDEhK6qrdFtHQN1sbtJb7yL11+R0E6mRvRxbxkeu4DnO TIDolZLNYnI6WximrXUq4ONdnXGZSaV8MrNVVUrn92g6vxnHenJb8gtzLnb/QWSOf4JoHIQ5qSTyL pkDjXFaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roaem-0000000EowO-0Zcj; Mon, 25 Mar 2024 03:06:31 +0000 Received: from mail-os0jpn01on2052.outbound.protection.outlook.com ([40.107.113.52] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roaeJ-0000000EodZ-1Rdp for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2024 03:05:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BUA/e9WTrbsbMW05CCNlnYBoP9yZQZpaGHmxl3Bps1OQAbm6Dzqe/L4ax/jmcBPSpyTqArYr4R0IxXfRruWfInER9sY9TY6qdZaIrLM5C1mHu16yqh+kyc4ZtVMFmjn/obMbucvFoptFRlzOeFe0K9WSUMyTxY7jSwVj+NEfmX5lb/JyQk+L++jxZ6EcAOLhCd3y6hdGUD6RVbDdDXCTt8OWkbQqp1kJdyFqRa9Uy56fseH9s3vZchjiV5dnGn0oYhXpFKih5DBFarAVl2o4UHTXcAxZ4eRjLFKfWc3/uE+0lZig0Zo59BTRMWDsslB/cW65MRfSMf2CwH9yDtVtTQ== 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=aUVSV9O0BvOIlf5NwBXOmROxCsnIfDr1KXx9O5h3cIpnJVJ6BrSX8QV2aZgTj4xKTywOjM94DjQzvF2sER3Aew/swZuVoS+T/mIT+D4ZnR+gRFB6sFWBaeNLkzV6ZpkRAJBbdJHF23wO06yFfW9K5d0RxEIwCNBcQVSPqiBwSBXJgtpddGloanYtkHRgnxQ2kZJ8SEVbhqKLikywLa3m+66aQY11gml9dVVfV4oEFyGyFgSc+5DQjNSvMjcXsS52fD3WYmf5w/E8XrUgvwJSRxoQ5TjPwzWLbyRawMgtUnSeMNdAZ+1FjLpvAdKTQC3Eqmk3s72GZqSi5cUfrkvCNg== 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=RlwiPfR0K1fk+OlDwPC637UNVOb4gcyUfhPOhHJcHJwXK9dLRia6JaTzBMxxvLmH4vsPKqY/f8UUylejJtl5w8/b75D/0Y/YaF9puBzbOEolWoTGf8eJIqlHq+WbGY1uT23aUjTB1Eo5w9kfkyFDXuupU3xsHocHHyA34cpCAx8= 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 OS3PR01MB6966.jpnprd01.prod.outlook.com (2603:1096:604:12d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 03:05:16 +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, 25 Mar 2024 03:05:16 +0000 Message-ID: <87zfun57v8.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: <8734sf6mgn.wl-kuninori.morimoto.gx@renesas.com> References: <8734sf6mgn.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/8] hwtracing: use for_each_endpoint_of_node() Date: Mon, 25 Mar 2024 03:05:15 +0000 X-ClientProxiedBy: TYCP301CA0068.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7d::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB6966:EE_ X-MS-Office365-Filtering-Correlation-Id: 65a55b77-2e65-40d6-e4f1-08dc4c786550 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: iDxrdGGZGxhrOfBhmSub+1Ko1ThA/ZnaNfXgNMmVlHBAmbBUARxFnvMKZI6RuQTqe+Xki5jjlRCPLzWQlCWtUkgFfecLLEzmTGwouXBQjN+iQf50Ha0MqpuBImq871x2qVmQRcjvtnoYFyh1qxesc+C6giaVi/Sq5S4MYd9XQPrAv3QAfwl9tAkI9NKXDjTnf1brcZ+PhA10dSVe4euyZihMs0MDDisSQUmXDjKfs2qWPsHe/Y+DdkXvyz0YIs+RRG8TNgjHWWGnX9t0qWRPZ+7vUPGP1IhPGkMeUEfrMyMAG1dVeClmmHcE7gSOXmoClC7Hz8yf/tOo2gxcK5LQm+e+mrNxD1Fp4hFnIe4fV+RtzBZWpHeMcjsd4xGjXkHK3JdV4rlc/RvRn/pbN8Hkj3BP3fyqhHv/QwkzYJq1wcJai9hf8cBrA9b4W3UiH7HQzSxgG8tnoAw6Y1qHPykNpnkyCCAX9u/nXaZ2ipNkfMCZnOag0g69PUUvZiOqrRc16L1FA1OFFJXZKeMb/ptbYp5X9JbtlmlUnbUisZNZq9o8T3h4TRL9y8K7JM4zjqhqekvFsr9mZKGVqccOrwvAklBt3Ebrtj/ZnOr00GaDLzr/L2Ksl0NkiTqtHpvJD5A4PVHz0g9OkZ8Zswj2uc0pW+75ZDOEl47AW31OMZ9+Y/euQLcyKFy5Tk8yFU1EElQ4iMDXKK5uVgdOaJSIIf9Vj3zyN8nBHpzrl0UXPXjr6x8= 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)(1800799015)(52116005)(7416005)(366007)(376005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TuD39Egpir1QeNBaHckNjVFGQxtWqHq2BoTh6vPt0HtnDUrYYQGzLqwKUALNHqeCOPB39UGk47ByV5zuLQF4kTZS2LIY49iOk9Y+6cmlT4eiZWY1ydGr6HYuZpiApvWFNICrWVnNUfBSeQS6zOCEu3+zDXsxn54T74eetd0muibl1aVPOd0wYPFh6LiFvufJytcNtefMYSVSZlTZ/lCvjQtcNlzD5p6zGmQBwwYYDWAfuse2JjTtni7FLIg5ry5hezOXYnh+Z/uUm1YNZpC/tHGzOrg2zvlcR0ZmAqlbNb9aA0OsZBAbhYsQiQY8LMvjseCOLzdp4oU8llRHLJVk7cJMJaNuE/MfjStpLcI7JxyrGos/61cV3JeB7EXdTGLJRirgaoSUOjbyfGLXhK7YpRFP8pr1gW2f/VBMBxPUwCCzPg3Qtjpu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BTb4XRk/VArVCFN9cJ8pT40HP4cdujmUVyx2e8fN/ueMo/m7y0XCUNfTMeN0lFEthP9vlP9O3kQO3vCsf8eaILOH9FK6/KHNLGrhoeS7Y2xAbVI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65a55b77-2e65-40d6-e4f1-08dc4c786550 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 03:05:16.0403 (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: EJ0MsNKF8QKJbxghPCYcrUx2UGtHQk2Tw37JB2Kpy9yyDlF8Oz/kyJaA85mXzifbMRA13rH4HiJran8PvWGhDTzKL+A/t+eTG8pVyKzuoSnFjyZZUakaHvscg7TymtJt X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB6966 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240324_200523_724264_D304A0CB X-CRM114-Status: GOOD ( 12.62 ) 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 --- 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