From patchwork Wed Oct 9 01:44:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13827411 Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11010015.outbound.protection.outlook.com [52.101.229.15]) (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 192E73D9E; Wed, 9 Oct 2024 01:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.229.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728438280; cv=fail; b=VCnSSWHChizSjIA7u6xAs1UphBjvmixXey3f7BOKh+W1j6+2LctlKa+dKCYraB0Y7eodxJoxYubBjcj/pHc9gRd2BGjcyi753A5Ncei6HD20kUmqyDCdrxuQLO+YnfMcARUCTn0PNh57agRjUw+zDznP7T2WrKyA0GAaYQ5ET9U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728438280; c=relaxed/simple; bh=0k7UZodSZXFmQSiY3AE18G+vqWopOaLs8HLBHzc1yUs=; h=Message-ID:To:From:Subject:Content-Type:Date:MIME-Version; b=aq7H5FLARWkU3ndBPJi4GwOsGsGmtSC6zhU9uCHQMh+vQA9iRbTj+8DjF1kn0pIP0k9O1HPGdsXuvI6sAGSmXjje0Xy9j7Upgu7SPgwiGhgUQDsZXDRPGkfiKNjz8lRpLhIEUb67evJLrH4bn1GMlIBuSNJL6iSH9GN2NVYWx/8= 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=Eg/BdxZJ; arc=fail smtp.client-ip=52.101.229.15 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="Eg/BdxZJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=R1gRpfili8kbfTaN4/YOjKNq49VzB6TiTmDzXHiQLm/56PcP4aDqpRK5UHB6eInSypNA9KFMpeY5/qIMREdgAWHIEJDoV+eby4LfCYkraCjhYwPU6D8eXrKGh4rItDnfDMgcarW6zkBhpfB7TE1lUXYUluNIcf30wpYR8qLTAdL6HEPDQ+uIwceQtqN3TJMUdt7cVrPOb/DbVFIDTjFMCYhu44bzhNEHiCtPbnkiOP5e8/xQ56jyrc2Z9d2mftBaHhfrtflPDzouV5psgBla9/qqpWJr60nWqd/fcu74Jor78/Uz7+kMwzCEw+UsDxwev+plY1AAhCB7yM06NNqtWQ== 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=Lz6V8B16HB3zXxv+PkJ0LJVsnzvKfamQPbE2r0h8pWY=; b=ML/PyKVS23auVjaj7yzNPMS8v0Y0xSuC6XDA+Q37Q+vsY13mEBR8JE+PTQq2zuQ8Q2V8zuDeAFQGLWdidQGtvLipv0Nzf8attj9XpfHj6gc8ydW5yDEIUU2eMZH0lhNFEG5P43Wogd6/RqU3Gheszt9cnhPpshXcqCwAoVYq6ZEYY9wWw6tKdILGtaSW1lTjh6fWELT+n+1ao6L8vrcdsE3UbVlpEZs7I1ghAv+Awp/6h3P/A2EtugTqYWAF07aFN1Lne/ue5JGI7vGR+4PLt+n5y7enyn7EUjNtmBJLCXVO3FK6sUg1kAtM9Mt++JkzZUk6BNKxp8RZnpZcOo/Qpw== 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=Lz6V8B16HB3zXxv+PkJ0LJVsnzvKfamQPbE2r0h8pWY=; b=Eg/BdxZJnXwNRI6ubx3skTMkqgvNdoRHrjSb4e4jxqYdLUFGpAaV4pUTGgvMN/yV3DxzOHH82nOLprFocaHBSwlv5eHlyYBsJkJaaMbrzZSSixo1YBHxntYxI/NfDclPTDLcR1yagVwLCIl4f5cfbqQi2WnLp9LVA9CUKxjwdD4= 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 TYCPR01MB11140.jpnprd01.prod.outlook.com (2603:1096:400:3df::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Wed, 9 Oct 2024 01:44:30 +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.8026.020; Wed, 9 Oct 2024 01:44:30 +0000 Message-ID: <87wmiirqwy.wl-kuninori.morimoto.gx@renesas.com> 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 , Sakari Ailus From: Kuninori Morimoto Subject: [PATCH v7 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: Wed, 9 Oct 2024 01:44:30 +0000 X-ClientProxiedBy: TY2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:404:a6::28) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11140:EE_ X-MS-Office365-Filtering-Correlation-Id: 1461f7e2-a6ba-4c54-4861-08dce803eafa 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:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: Rhlx0Xz1yavgdLr3bHTdlNcsjKZYZCzKSYaY6zukZeHUUXKNjTYmsiIW/uI4A2bf9BYS7b8bty0usNeuKeEE8qTZevNGBwT2RMgbS7ZnCNB/brbps913bzumXxFTcwAmXU+tqSrXx87npg8J2FgD5LQRY8IY5qUmyCHXzgBWMIIoS9eHYK5vvRtQiJ0oVGV9bIFI0dGYwnu5AOKvJFuLdm3Svf4wYpGaDcA3HYM7CHXiFbcCtfM5VSPrJjS1i12apck0c3erPck/WWEWGq9xvR6ByDm3Jo66JyC8YEXiGTA3tvE+2htdwpNdtl+ealMB+bsUdxemTT2CouFMvd9d+RVb0+RV0OS3ayChU5WzrvcTU1nvJXpLPO059YWSnDlSiw1vU33Hm/x7cEHlA86XZ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914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: edfBgF/VOQH6Do4dsnbFxYrpbSCgpkeghBXI3S2keEQN6vtR+pH7AWlIIdY+hvpetap0rWT2+cT0QWh6om6/Xuv1EQryalKSNbkymwexqx8m2I5M+Ocg0UpGkpAGCQwybs0NqLajbs3bKRlzMJiG6xHuEi8i+thdfLN3hRL3LEENucFrcUEjJAF3r0QLU36qUKO0TzUOr18Wxv/vA+3EDLN9ge8ocj406icj4aAVALGPkB0Ugo9NrRbVwMVs0cXWNasl6bsJW9tnQkkrkmcgbceCqxXB5DrMNXzmZYTtH+B16SBmWF2TIS/7mu9j4r8hgjBN/ZzXhbgPjmRP6Xnitiy6G881LVFy7+AuryPyiRYJUjYwhjvb8v81kSGZ86QvSolQg0HkHjEhsxYDrQPT4+QpJzkhxMhMAmZtFZNqIIzfbc3o1qgzhSMzYFjVcqEUUBQ76Mg2dEqr3ZWT+OK5Qb+C0w70bP+p39k8/N3DasEwPeST8taGNqHwLijUulCpCoK9/W7LesG8xCAcmMvS6Y08RbvrstNf28psTYdTci72S4EnxqlclVmKct/v01KPCPfhXpkPO/ki5KBTQHHJ+FQ56hET7rsXH/rSfQXMXNEwv9Q+CfTtT9jxUvgAdMrHB4ZLTq0En3ij86ptTjfYWHr+W89iviHU1Z5XSReauKuJ1J6ciDqj+hoLW3N5tILzyHl18Aw9v1tHNGd+a5CV26o9RfumrDn/dLnFd03EJiC7lXwubyThXnWPCTuVHU9GoR/EMjlKd9TYLngXn3tMC1MYSYd07broD64l8LoK1OeDzuAT6Julq1VDvKIXK1IuJNJsMp/kb2kg7dWa2h7wQ/VdwvCZdBfMXSTZWZmBIh5z4g9uQW2abotVqXchiEsz4y40zblEGO7Z8tGJQ0oHFRtJ+PUUnP+t5H3Xfnn2k33fiuxu6jWqyQNKJfAov45f89JsS4GF8T2Hq6PPvycCjdrmEzIRKgRNkT5hBIcjBmxPpdvtQsGjbKF/AvTNQwHSqNvdqx5raLvCfu59e9b1MlfYK2fxYiWGDRlt3w2zQP0KoIHRt7zFZc4yzRN+yOnPcHjEo/wGaDaW4iAjaOjM54XtVBDpPpQFJxVjpDoLHzwYo2yXTJQcX3VOaiVDECikiTGJRti+JTTXKwzFbIz2/uytyohqsIyJP/AlGZy0FC5ZwOvKoKMrJQH7XGB31xAOZZMp9amWVEbLn4Li9k+jp4zgdMJO1CH5R/eRmh7D7AVv4MxfyJ5hwUYDUV01mIRzTuR8heRbRFTb99SVp3KDjpb06X670CxoRkW323GVT+IyZW2ori7aXDZreljbJsrMI1FxoT6MbMfJeDeRU29FLJ1f6WqMKbTfy3TALoh+78MBg0QYpo+SV6A/uThQFGOPKuBjqlKN8+XOzy6J0WbOlOwv0g3odRH/BsCUD8+ZXTF03lb8EugioG1PwHF3A/t6dvTOhFxJMOOZOL+wSG052xN/fB2VKCuK5BdgKIse1baMFogqAvD+FOTopLSuz2XFDa2zOjNW9IhGvzWz7doFyfDgjKFzNG79Dd21p0nWpzZ3+jugp6eGZgkfKSShy59H79l9Bb0Kr41ZTFkzIxbOj4HZxI7Y/NZlPTowR65DZ60= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1461f7e2-a6ba-4c54-4861-08dce803eafa X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 01:44:30.5681 (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: h9Y3Zt3x1ZccHarP1kNyfjeOsTtX6dU8z4L3galXkAyUvO4gBWHHERw96V91r5GwrlN7iQ369OGOdDSZEoRajcCOAdZSrhPHHIfmwqhdBmvdDfWRxtND3JYUPrjHWCLE X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11140 Hi Rob, Saravana, Tomi, Laurent, Sakari, Mark This is v7 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. v6 -> v7 - based on latest linus/master branch - remove "ports" base functions - use "port" base function on "endpoint" function ([3/9]) - tidyup [1/9] explanation v5 -> v6 - based on latest linus/master branch - [9/9]: fixed compile warrning v4 -> v5 - tidyup comments - [8/9]: parent NULL check was removed - [9/9]: use for_each_of_graph_port() v3 -> v4 - new for_each loop includes __free() - comment indicates to use return_ptr() or no_free_ptr() if it need to continue to use node - each driver based on it - care "prev" leak on of_graph_get_next_ports() - of_graph_get_next_port_endpoint() indicates WARN() if port has non-endpoint node - tidyup each git-log v2 -> v3 - return NULL if it it doesn't have ports / port - add visible comment on of_graph_get_next_ports() 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() of: property: use new of_graph functions ASoC: test-component: 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 | 14 +-- drivers/of/property.c | 99 ++++++++++++++--- 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 | 20 ++-- drivers/video/fbdev/omap2/omapfb/dss/sdi.c | 3 +- include/linux/of_graph.h | 49 +++++++++ include/video/omapfb_dss.h | 8 -- sound/soc/generic/audio-graph-card.c | 2 +- sound/soc/generic/audio-graph-card2.c | 104 ++++++++---------- sound/soc/generic/test-component.c | 3 +- 13 files changed, 205 insertions(+), 172 deletions(-)