From patchwork Fri Aug 9 04:21:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13758384 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 1C37BC49EA1 for ; Fri, 9 Aug 2024 04:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Type:Subject:To:From:Message-ID:Reply-To:Cc:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=xpFTF1GlukPO/8Bq6o1bb8GrIrcSjPZTTyY06HzNDdE=; b=xVlOdD+6LwKjfW1DBUKDi6h3d9 ebjZjnlIAKeQnlHwIA9KJ8jb532BFWaindCMTlnLKBb+3fQHJT1Eq0OaXNWcDdFYIxMhH9TNUEpVm 5RYq0qaHB6d/sLoVS434k/DLu/Cz9Kz9p2scuCoEfZey6NN9KHgmSUz5O3tManrL5tMEL2L2VamUn nUXIaT2KgOD8z0TElJdVGHabuuBFbFAkzb4Te7O18XbW0xT+Chsp2rrcf3M5D62pYoWeQrwEJIQCm dK+7bhT6MCXtMnSfXny+hRSe586JH3FAYccvFdAQJ1wnW/em47oqDeH9V/0y1WU3z7zd8J+zZjvnF jcCq+LeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scH9P-0000000ACaj-2v8n; Fri, 09 Aug 2024 04:22:51 +0000 Received: from mail-japaneastazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c405::1] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scH8o-0000000ACSC-33kS for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2024 04:22:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ieQPqjRM7R1jy7koM+UmytId+/eOwOZsbAOzKBEMVTNzmQO/sMyVLvbxvhqF2ygQsl6oC8WVZABX9QO51u+eB8HIuNjdT0HWKNqH5FM+L+0EMODuN36YGJWExvSb/kVraiY7IiyNfKmgpWGT1df5aS2Sj09f9FgD3Zqzv4XkLgUBJnzzF41gY973WfUWbsbn2ewIqeJureNL0OgnnN5Q5NxHELsrFvk/v1t3P7HNB+aXKNdoPl6s8tfhkUdmF39wmXy1DQOIx9BvOUzYLFFb5C60U19UHV57KcZFFpu7CJPZDdPI+oXaJ5Csc3eDl4PKaJ81/h7XPElVufYuVemCIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=xpFTF1GlukPO/8Bq6o1bb8GrIrcSjPZTTyY06HzNDdE=; b=EFzFltV+JMYc5DvHXVS1VgcIvzwFUA4bRqTYFnzoIUgoXxrZSiEDl36HLPKzSIxoNNBy1/SsQ7eHELVFk1P3o0g5SzY9RYs6vB/usqGiJt7NjVrxyOwnm3BuA333R1c4JOMgXLNMcnFdMOG7FmEBm8B+xE1BDUPYHUjDlbueaVyBLg1wEno2qtNCV/EtBsVc1LSeK+hcGZHrlFMPukEa0ml/UnxpolGTOMoX2V053GtYkRQlvPXO65reFd2HOvxzp+vZX4clp+ff0JpMolYImJ19LEH/uAx7NqhJ1MkVJOMHnDdOhYcdACJrpqhOHDKi1ctft4nOi0gmxZkQnBQzEw== 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=xpFTF1GlukPO/8Bq6o1bb8GrIrcSjPZTTyY06HzNDdE=; b=NrSHjMaZbIABpbkHvjnkeXdPU9wQvGnEoIb+3Q+EfTtXWs58piZN56zr92vm6tF01VYUW153UJ2ydzhNYvJN9Pj/HoSQ/15rQqFNqVBbQp+WxkYITbLVOAheCaEaDbxsnriNALqsPCpFGsD7FFrNwRJGciYhneokLk88ceSbIEg= 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 OSCPR01MB13048.jpnprd01.prod.outlook.com (2603:1096:604:334::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.14; Fri, 9 Aug 2024 04:21:56 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7849.014; Fri, 9 Aug 2024 04:21:56 +0000 Message-ID: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Daniel Vetter , David Airlie , Helge Deller , Jaroslav Kysela , Laurent Pinchart , Liam Girdwood , Maarten Lankhorst , Mark Brown , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Rob Herring , Saravana Kannan , Takashi Iwai , Thomas Zimmermann , Tomi Valkeinen , devicetree@vger.kernel.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-sound@vger.kernel.org, Tomi Valkeinen Subject: [PATCH v2 0/9] of: property: add of_graph_get_next_port/port_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Fri, 9 Aug 2024 04:21:55 +0000 X-ClientProxiedBy: TYCPR01CA0098.jpnprd01.prod.outlook.com (2603:1096:405:4::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSCPR01MB13048:EE_ X-MS-Office365-Filtering-Correlation-Id: 6bdd633f-2b2b-41ea-12fa-08dcb82acdc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|7416014|376014|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: HNsCYzZWfcRj5Q0gG2IYpWglx+OjpD/BANC6SrV0uMXD8sFJfKHAZjnuA2AfY/c1pax4MJ5q4mjrglabPY2s5uWjYaTyjwgpvvx5FLbNsZYxCz9N3x0jI1vN20pkcw4ScLCpFhtiUVksJNImPSsqD/mAEiCvu93ev9sd57N72TPYFr7dz47Gm225aa6b1VYgqYgOikk+T4/YUMYaHDpAcrTow3WzhqzjhlbejTJX+C9s+Yeub87juWoHqdtcQCPHB9NBMIYaWZqoNbJSuBPmFs6s8rCoc0XE/3I3R2giuNLbMr1ix5O/jkvbykBPxGVt/SmrIERtFSPPNuYDnqnEECCB3yVI2j4O53T9x15PH1NJR4OKUIpy4oZiGhlvrSKbxctV3/6Lyf4xoVpP8S7lqy7bmJgizECdepX669fWwDrJsKKEV7u3SfYJNZTtP/Hj9pEEx0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jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(7416014)(376014)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f3FYhEWV+dnxALCTKnBaO9n7IF9MZa/kuqlDUKYaHeZ4V6qTMBvgQaTC5fy1bBlxXMCnP478wCqiyxqlOFNcTVkx8C2yyM8E9UJykmqCeLEEWHblTuHRnlSjzEanYW1eHk1VdWqensjjMwGS4ZC0Xfy05wGPaIpXPYs9hFqiGSoQzXWQGfRtfm4ZDtWme8Pcee8zl3gLAOW7bgduE+u6xMFRA/bXmLJuyoh0kGBk4i9I5OQn8fGjfT04HBrQnTMQ2qDqPLBfGAJMO+/woq5xKAqNc/oNo6EEL5CUTBVHHXvw5WH6A9NhrB+zoad11xxgEGMP4kcF0O5WZlocPVvI9zUwhkWYe3pzzRl0Mhoi8DNqMrJGSHLHk0pVwNyXHosiIAy3rlmMbcIiYx8Qy9kJLv3ttFdL7PZxOku1jZ1ezZ+JB/IclVvVjBkI6PmUkKAReY3PMeedKTNdyDmAdy2mTl/xfJ7YgzYGuE95Ij9iDeAtxrdXjN94cXTuWMv9xAXC16rcnqkQfP6+/1u+bdZ4I1UwaiMteLYZB9uODf0hs6NzFhDwSmH7ShcmRnDGc4bx699eo0LsnViCPTQfRpCC5fFTLk5hsD+vdvwmKsqDQ6mrPfSGL2l0LAngkrYQeojjNbroNR9rTcNGdE6Bb6AGonk1lDKKPTn/yl9VBFqgbGh4kEOGZx4arVf0PqJTqGh6Kaa7sJ2jjTg6/wU819xgntXV5J6nfUI35ohI2OECeAvv/QSwPbxEeH0/Ww5M1wCQJEGAAQLHq5Azvcx430RkXabvaOud5uKjv9uQhAZisQ+rXhUWEfJopJsBvVGKKSro6ZDFo8W+w6/ZcFNSoacHT3mkR63M8RF2RjzsuxLqPyZYHkEqSiT2N5TBfnYmJuZR2sQFsWsjIP9dgRw4sw7nBtYbZvSWg9V9SZ2yljzVQWyQCgbi3CX33v6YjEpGMED5O6vkrlvCjwh7lWlMXuBm+irJgydsTzt9m9njH+oWpseIZlRH6w3oWGWYFysnGw2eQ6C0RCEkBRabs5aXQjLa7i5FtsQ370e4VeBZKvri2puxYyL1X67WTuUI28oyyuXBqNwyMwG/dQGZ0hb//Wzy3rjqvSX9hhWfneipOq3MNAgsx4wyW/5gKTaebsqqXpe+q1/ePPHEk8cjKvx6lNxWPIH3/lzexqIZjRCyrA+MiOFEHdY1ntQVcsbzSoNohEtLbHDHOGY4A7k4U3SGt2ZUjzJrcOrRrA3TTzGhdWR3o9Yf3nTxhIP7mWGJTliDmVtwZ6r3MA5AaBUl5LRVuRWqPtjuHXrFaCKUqxQYxtx690DkOFGtBzqxMP4k77i7tkmQzxD8fBnVjyTymTbcorwggVXK20VYMjHGor8uiXE0qLWJan1nMLM3onhkCeVpBCV1aIr1dcH3Fep5uzcoZMz5pGhQcFnKl6EXXLC0fJalRjCN0mj4mYWi/Nvp5Fw+PiqfYFTMaM34CGeWKi71REQtxgfSThS4WG3/tr+jFjkNWn7oMXyrFnuOjfyIKoP2if6Wy0GwPmX2NaLKmx6IXLZC7NUb7PKFdPrzNUlArUq8+UyKHmuoqxbGRjvDxvX0OOSm8om/FXSOygWh/nYJJAywsBxKQTAgQq7qYFGfstwLFok= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bdd633f-2b2b-41ea-12fa-08dcb82acdc5 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2024 04:21:56.1146 (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: XtAWNIbxQE9EWf16UK7wMyA8Ehp4pTrnnjrXBBzSn4CSw13MU0EvuIIE56yvMkDQ+P1M/k9lxBWLvg71UzIg/oBwOgbU4GQaiROXiKT7kQOrgy6XeaBGtvcwIzBi0+LU X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB13048 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_212214_778965_E5B88AAD X-CRM114-Status: GOOD ( 10.48 ) 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 Hi Rob, Saravana, Tomi This is v2 patch-set I have been posting to add new port base for loop function as below steps. [o] done [*] posting (A) [@] this patch set [o] tidyup of_graph_get_endpoint_count() [o] replace endpoint func - use endpoint_by_regs() [*] replace endpoint func - use for_each() [@] add new port function Because posting [*] patches are under progress, and it and [@] patches are independent, I try to post this patch-set. Current Of-graph has "endpoint base" for loop, but doesn't have "port base" loop. "endpoint base" loop only is not enough. This patch-set add new "port base" for loop, and use it. v1 -> v2 - add each Reviewed-by / Acked-by - tidyup/update Kernel Docs - use prev as parameter - update git-log explanation - remove extra changes Kuninori Morimoto (9): of: property: add of_graph_get_next_port() of: property: add of_graph_get_next_port_endpoint() ASoC: test-component: use new of_graph functions ASoC: rcar_snd: use new of_graph functions ASoC: audio-graph-card: use new of_graph functions ASoC: audio-graph-card2: use new of_graph functions gpu: drm: omapdrm: use new of_graph functions fbdev: omapfb: use new of_graph functions media: xilinx-tpg: use new of_graph functions drivers/gpu/drm/omapdrm/dss/dpi.c | 3 +- drivers/gpu/drm/omapdrm/dss/sdi.c | 3 +- drivers/media/platform/xilinx/xilinx-tpg.c | 3 +- drivers/of/property.c | 110 +++++++++++++++++ drivers/video/fbdev/omap2/omapfb/dss/dpi.c | 3 +- drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 66 ----------- drivers/video/fbdev/omap2/omapfb/dss/dss.c | 9 +- drivers/video/fbdev/omap2/omapfb/dss/sdi.c | 3 +- include/linux/of_graph.h | 66 +++++++++++ include/video/omapfb_dss.h | 8 -- sound/soc/generic/audio-graph-card.c | 5 +- sound/soc/generic/audio-graph-card2.c | 111 ++++++++---------- sound/soc/generic/test-component.c | 4 +- sound/soc/sh/rcar/core.c | 12 +- 14 files changed, 246 insertions(+), 160 deletions(-)