From patchwork Tue Aug 6 04:57:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13754382 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010011.outbound.protection.outlook.com [52.101.228.11]) (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 F28D3A35; Tue, 6 Aug 2024 04:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.11 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722920283; cv=fail; b=lGf6ZwcihDe/K7/PAlUycXzkdSMAYKScb9idbb2PaBwfFm+STPBq0fNFm8TmZRdfWf21HJReWeSB8zLP6Bpxm3Ip3cTyFuiFrpbCTeofFNmGuVRz2JmXG8kKObaGNMP1Qr2K3R5PeQ4gnT8D8wpE/qHTybWoBb2MMJNe35XcDN0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722920283; c=relaxed/simple; bh=TbZPUwKt1/PO10PVXORGjTxHsTsdyJA/CYQ3lr+ZzAk=; h=Message-ID:To:From:Subject:Content-Type:Date:MIME-Version; b=TzAa7buB3GenorutNR8IPpaPAYNGwXZUvV4ae4QWsVio1N3byMyXG4r80EVu/6TuNZRn728d0c6vObiczML2UKA7ocKwbdmdwSCk93/EPnqS7i14/8IeyMkP+9wluynnu0yTnuiL1sPHbryYpqNRkNm9bF8shp5Wv6ef3WLgAbk= 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=cubo4W6k; arc=fail smtp.client-ip=52.101.228.11 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="cubo4W6k" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pO9gptSOUMwGA9xO9g3BY1EBETpGeNSNhjwXeQuJsHIHcSyPRRslsFVdILZo4dlWrYYfZBt2wRnNphbinp4BlhsFgc7BNa8alJEqZUd/OityImSAvrUTn1Fl7Jj6ZFfmbgDj+bzFKjADH8w0GHjNuGBO99+Om90PYEnH7ARkIFJ7BBJmYSDu4RinxZlnePJJWVoWEk1i2nliuvWyOh+X4ZfJtZKgmZpSBdzsSJvwl5f6ZA5Y+gBfibBSwH3QbFI5GeyAR9x5zCkbZAqvAQQtmHZJ6TLqNa9NR1/gONxg8GttqgF9KpLRs8Ltw+xwZikRkVAhcMRy1jU4ZUJeN4Z+vg== 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=+8nD/5uyNe2wLHkJARAqr0/7o/rZUI6BDU20ibOgI6E=; b=StJnOMHicbPsFUltpXHWfy3M8gagj4KR68pN0MFyeUgisMt2UUgEpqLTxZlD0WxfVC/E+V05Iqe6ksd2iPTOMGL1cKI74MdY+vKP9VIVlLPIrZh1a06ZYot2pfOn/fAX/iSMAxcOYmAt/cux+P2yD/9zTKMp1gtCnCmX7XbZnaBUrJuSTOJIk2dSSxxpTXIzxad6onsQ8uZV0IK0Z4tn4XUA7EgRs67bCS+8gYdeCNO4upNBl9XGTflumH7ZPhAm5Zcf3fOBBBmyb+6mjpar0ckhGm/JhvmNK1lA5SZZFSpjNCsrEYVUnZAlstTn/78sy1LtKeHcYFDfshiVUKadNA== 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=+8nD/5uyNe2wLHkJARAqr0/7o/rZUI6BDU20ibOgI6E=; b=cubo4W6kZnovnFmoQgmXg0lHPQirwK8RWu/cBegUJZBaM8EXYvwkDSK+T1JprRtbVA2pOschmR32IVTtyuQBY9bfROCRKfFpMo3jwAT9jz8vO4apdJfsCTT5dYRzN6b6FTk7pGIpwIYIXdvJrFla+hgaiyt9NNUsbqg3n0sKb6c= 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 TYAPR01MB6380.jpnprd01.prod.outlook.com (2603:1096:400:a1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Tue, 6 Aug 2024 04:57:57 +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.7828.023; Tue, 6 Aug 2024 04:57:57 +0000 Message-ID: <87mslqw8mj.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 From: Kuninori Morimoto Subject: [PATCH 0/9] of: property: add of_graph_get_next_port/port_endpoint() Date: Tue, 6 Aug 2024 04:57:56 +0000 X-ClientProxiedBy: TYCPR01CA0119.jpnprd01.prod.outlook.com (2603:1096:405:4::35) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6380:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ce5ab19-471e-46eb-671a-08dcb5d4568a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: bIbzxOMsYRcp2+aneaYO9u3FGNuKTFQ959w32Ex2Qf1bJFqDB5LgqtGp6FAGKLCFyKx4syM4LtxgqectlOnEc0OSaihP/K3NTxs7MQCmn8jD0TTRNt5V6EoDmFzlZx9LxM3IXy14lF+51QsR8aGrCIKlWGCWts9CFhWdrdo5uTfiCvWvG5qoH5muYoAA1z1Zja1KApPb6HFxk8+vumTnYa1kkZx8p104q2y/zIKqfmRTyWu7bJkPxLRyYsl2CQtMsGVi9kdCjMCollwdlprD3J+ectSyE8nN4PErbLE2qyn//0lMaj4PR6dYDjcu9x94MaYAdJS4oLU9brQjwdZJJGiUhYVHTjUc53BDuUCXlTnXZzgoVHOgmn5K0KtZKoM3+7oZPzWh3Avt9rHXvgRo7cSIUA2fah1T9gBffemOevbM8z1GeZ1cNdujDEwCpPhftXO8MSHj+hgnIRUCKv3hs4ea26YEpne176GkG0gcl06b+F7j3yzqJMpG4/21Kw+g9vO2UwOOrfeihLAaAP5CsmydMNg8Iya9/ype3ussOFKXZ/nm56He0dMvb+a9MsO0HG4jvFdUFQswyuagpQDU3k/8G7BaZ0BX+zqO3hNzy0BITFMAamApEv452e6r6PRl2bwq/E48Vw6V/U1XiOLfSPodbdfRZtJXxITWvhWrTlD7ffZURsiUyRXAiufr5a9r5odzCiTaACxn7u1WhlakfMH2KwjQtXUMiTq9q5JcZHYSvEUVaPNGaiE5xABn3J6AS5w1RL3ZrhaYJf6/P6sJlZHKczbR2kDroytDTigRf2+X/erwXxrdTfrqZMh88ddYoZ9vlARkfYehnLoX8DZQA8ELvS+l9+arOmntf8qUp2F99Ab5ZZyqTM1kBSJB9lM4bN8taTp6ZpcM1uINXgEDKIoWJCzzV+on4RcYlmVEnjXHJn5yPjmWU0DJGc5N/BAznJ4HIGMWkdEc1V8i6hA90x5J7fOqV28Z/qWNrsYa89gEVtGj7cTV89KkiM3Ctsi3cj7XNQtIvTJRR8l5UhXiLno/QV9rpcnl4barcE0C+1hnsbM83wLZ2kpIFP6Qqjg53jUleDPVruHvLukKOPYMTPO//NW7fbXhQWtga+aIQ7jQlUWBhMbPLUBVHJ+ftFXc36CT/2gWOO6fNyBjODhXiiDW4tuAdXSPuBZe6udVs5xuhowmb/uv2bTKMzJkPI524ExAUhjR8R28RFj5NTN4oUVI0VeR7rC/gsIERgc5/pOpke/KntkQh8zhittYthdjv98TXcIwzgEKS2K5y6AGV1kCwltepM8IlH0zW7Iw8tQq6UltSPtvjxZWhP3jUP+CtRpYak28tQY52bBBVi9HmXVVXhdeeE6Hj81fusnSMRFjo5e/7CVoJMPLV7LvbmCV4rF7B1fcL7eKiBPOThRBtRgmzDJZ9JllsrT/q598lFk= 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:(13230040)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OU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Bnx0aWobX+Bwr4Em1S/zrH4j641SOyf7d/tEQqv/oc2nyBg4hotqFtbMHCq5sx7iKbtJvDaH2ECa4B1j2UDih5i6ESsGc9nMxAFs2Le+9MVTSqiDOznY/8D2itOSVHKrK7e7qlxsLMUdXn4/N5UHndBGp5lq2Ae7b9AD0MxDaiRNNXhYb1xPKTP2IP0d+vOEHIZQu81P7avXk6naNy86A7O4KXSh+6QUbthvGme3YcdfUIgM0QfHsHt9O087XKBL/HneRwWQx5humRqCiBqnKVtHwnDG23Z2csM04s12nGmwd48CtVfyM93zwLsP2Dci51K+r/RMFG1cpfr1yaMCPCVOnwqqYi7xeOQPPspPYxtCFoO+xoXlj3u8a6Sx99BUWdzXPNDgFL7bpR4O4x2qANrLVk5n64g4P00v5s3v05Nol1nDvjgUiUfj9jgNgS9waiKONOKl0DEf2mMpXyOIYkJydddyTu3M4aAkSwhrbWLxryUXsZyoyC/EWMTKOz1+Sq5Hnmn/sEXeypDzcpd/g3E7fCAMI4bmi8IqgJYmUKoF5hhGyiVzK0S/NO92s4GLnLnTia+UD2P3cTAfqyL3qnPbEz5L8sc5OuEWhHrruykg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ce5ab19-471e-46eb-671a-08dcb5d4568a X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 04:57:57.0941 (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: d6EOrTwJspgcDOnyPuDMlTQe00ai8+0uc7+f/bq7HPTYj4PT8Kgo1DLal6zyrjwo+IxSYc/h1CRJv0uPHX/HOZQ8MaNfbLWenmg8J3/99l4a5dW6BAH/5yKwWneUbN1S X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6380 Hi Rob, Saravana 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 no update during this few month (I'm keeping re-posting), and it and [@] patches are independent, I try to post the patch. 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. 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 | 108 +++++++++++++++++ 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 | 67 +++++++++++ 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 | 2 +- sound/soc/sh/rcar/core.c | 12 +- 14 files changed, 244 insertions(+), 159 deletions(-)