From patchwork Wed Aug 28 05:11:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13780511 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010071.outbound.protection.outlook.com [52.101.228.71]) (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 3A06E14A0B9; Wed, 28 Aug 2024 05:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724821887; cv=fail; b=P6DOzwgRwidaltbfbmRJGDDd0fOKBCFSPInkArH83zCkZGsRVPUVCj0cMKcC7aeQ9S5BbR3HGbq+Xsaj/+3i5l0q59HPSjnCGVe3rjEoyntkctA6JTIhP+V5k6tbFKZp3NORBz9j/jDUy7JECIq0RW76wONd0Iri3qr4uFOfURg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724821887; c=relaxed/simple; bh=ks01FPLv3rlaTyLrwDefxdCU7D4hlojAHhQb05zQAh4=; h=Message-ID:To:Subject:From:Content-Type:Date:MIME-Version; b=q7nNkKY9KKKmyl18jml6yQbXsSiZ8QaPEa/MF79KsBB6IecGQ4DSpW1njVjs5J4NQNfEiH75kYMYcrMdMx14CC8NIkEw9F41lHs20B5cBEMLB5h2Na5Zks3uk+h/6DNF4ADot4Qbji7SNCkG8Mf13hiTq58CbfvUr+LyJLJvEaE= 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=L4Cc2ZWQ; arc=fail smtp.client-ip=52.101.228.71 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="L4Cc2ZWQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fDCbiKl5KSyHvXQZ80VoLYhOc8qkov0EoPSGSU9Qsrb+4/Z9vyTXknb+oYCErD5Ct1wGmkXF8aY9fkPZt7nFSg8ViGYkUqAEY+deLLETLq516vBdRo/im5ah3ooXnF1+Qq8PxbtLBSO33lcLDLPMrGPr2bBXWyRgHHiMToJZ7/fQi5CsJUArzUPfDu5ws+6ZR9DCS1gNmEMJdRKaDUKqxpU2i2BQOGd3vJf+tJy+IytWv3FuGmxidVYawsdWEHmicBCFt6kSrekgHgDDodz1tawAVxIJGLc8rXYbnEJLabgsPy/bRjjQvbIFfXWOtlAxZId2NQAVPWyH408LEb0ylw== 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=ORL7Ei7RO9BhbM+8A2l1JbcbUgiECuz/HB0fToj+DdE=; b=m1/8qt9CJXUNzVyMPpI3r4tXSl6HyaFqEBZlLvfEpVyRVDoQoVtb7INMH/QZtKHS6bAvfQbQZ/faP/WYDBg7qslhGVMDYOk5ZEj/rEhliOl2oLLSGRJxYyaL1fjF0QcmIA1noo13m9LVwp4HSAih1+QvtqgOHTeBY2xH7xKukr7wTEQtSQwEWYfsg4V7CXZlsOlAFfIAKGe3ks/WC/C7MILmIDvMu/rY+T/p2Glq5a5X2hiXmBipoGz/UL55cv7upGmzvYicPCB6V4yiQv/SjTAQ4qQO1KJ/3artYhUUXRK4KEYbJcMswSG2j1/hg5+V+hbbnuoZycIVyrQKKYbdNw== 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=ORL7Ei7RO9BhbM+8A2l1JbcbUgiECuz/HB0fToj+DdE=; b=L4Cc2ZWQ9QclCJtUpXjaKH/P0o63GgYXCIzC3JESOuGYFYS/nJpaPMkbCXeIce/0xzKMwty5xzxEiS2WCEgM5eJKCUMIgsuaxOhDnVwpdortXZ4IFEjMA4ODbTv1trSTUWjvZCf8cWZmPrKPlhflGpNNl8+ZpZewaqtrlc1FsiU= 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 OS7PR01MB11955.jpnprd01.prod.outlook.com (2603:1096:604:23e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.26; Wed, 28 Aug 2024 05:11:19 +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.7897.027; Wed, 28 Aug 2024 05:11:19 +0000 Message-ID: <87bk1d2pvt.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 Subject: [PATCH v4 0/9] of: property: add of_graph_get_next_port/port_endpoint() From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Wed, 28 Aug 2024 05:11:19 +0000 X-ClientProxiedBy: TYCP286CA0316.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3b7::9) 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_|OS7PR01MB11955:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bdc2bcb-31f3-4ee2-23df-08dcc71fd9e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: q2Tn3yb+jvkqqkQCY4UtP1TUEwZXLxRROsNgUi0jl7JSdx5fpsGXxLt6JEKUlzwYDZbSqp3uUSIp9u5uECfCWAOqkrh7FLsbrWkeOFOBf5BuA/hb77rOJ5Y7ZPa3XUPIFlk3Djir4Vi5iLTtgS+ZFYwEWEPQ7hp/k0hfYaJxvLawxiOkOH6IXoJLq/LXZE7FxdRihxYMGhhAwW7ndPgWQ5khEHpsvgBRcx54dq4yfwSsJuvZgGI45nZXA2KllTvw+38R/5M6Ckc5kUEq8PD6m4l5k3BioBXcn1AZ7kbWc1mzdbjphN/TpPdqaLUTPZuOR3fLG4iUSi862RFRiCmClLgYMiOzCdHcHpgr6Eg84ABTwYQymxPm0zq6AURXIipruESiP5JsUbeHPFGjnxECo8tjNesadTWL1WCbs2tO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:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jO1Rb+VFNRdbyRgbzk8G/kq6YUx2tiVVc0QsTs7suhPUg57Ii+hxROhIBb/3YxzZ6JIwQZgfRG92z3UmS2nw6uleB83vrcdIJsQKAV8Me5DJv+v4JXIWRK1ZantHRfh5weGf5oU10WmI4bS8JpribsN82BCfwssH+18GFng7D3bfhtTx8mF8Et4jT6K2fjAgN0bhmeucGhVZGm2LL6jp6KgSGOBGVCS6SdizytjctHfWt2KdkLzvIx2eOVz6nwXtlCADiePgEpyRL4pigdqge91Gr2sGOENgw0eeAXL7N0d7dqxe66IhFRCojfoajujY/PaQ1aBQ803BErXzwNgE604CGZ3e5Am4Epa8trtHb5boLKhIlTzKGp5hT6CxoPAPJNaN0IkYpDDRAefAy7fjdXdxYObWtAeVKAtaqG/9AAcjMYS254nPNXYYl7/Lx3AUu0O7braPclzWWRIn0HcBo8W6g553w/2LSFMO+G+Q6RjodEy74jUc8SY+AQydxhoVQaVzCdrquaQYVAqh7g68v6QMydf6N9zQ/C0P66890VqxTPMAwXIU2XBgB1YcKilibjy+c8aGF+O7FZfv4hROoWO68pBxnNaUEu+fEzcahMo8xf+DZ+CRNo6Rct/3P2ni1flmu9aBJrPkNPcvD3nDJcaaZTxU8MueifWkhnmqZstYQ/2l0Z7QWRO/qDr7TGFUY2Dp4M8/GBlIPS9oAsiQXpbYTpf2xCvKL2aYv6gAVGW855KVbs8Cs2cS1LrricEPpmt5WW2rNlOqrV+ZHKtp1PwKozb3Qkp4fZ7554qsUfcXXVbC7aOadYJV2RwkgPxdzY+ek96QoffZWQgAI1S5BvseZqvZdYO50aHpRCxKXM2YYMJkOWt6bC1Y3UtQ3Kmd0rc+sSVuY5MQkoYcGpjzNSVj7hIeBL1a2SXP2y6vX0xfmIzuHnfjSMheYHHJEi9NlyKgwRMlG106a/gwnAcbYthBuv6No8jMXy/emMuYbOYK68vlq1CHYqNeims9aorVDESiSGoljDw5v5piZc45Z23kW03hQC4vKVV/54n/uLzwjrZ5ztRyY5Np9gO8707s3aEXvvgov1MCeV7tcWf5lSTvc7tSO0INb/MfgPTmMuFHKfmK4Lb2RYgZG/VlMPFVmQI98MUwrvjujdAgKcJBzk4CGxv3ieLT2sXmNx2bFjtZStUQ/vFCMhu4Xdtz+eMqeHe2SsRep7DTF9pf9f8hByj8qPvcqe5sjfWYhWPkwYgdlIkxIK+722HETv9vCjCkZfAGAN50Xw1M3nZ1Jw9sEWF2VMAWx6Kzb7z04sJpNW5fgYEfGLyv3+tz6PFrxo2HbNtTFQrISSNagvy+VetqvMUXl9kjuGsrXcTYHLD/5ZpAf6r216xtDin+MM01yAk45JizXAy1TUcGjdCLJKypoE8Bfa+ibjuArm2fF0wRvXQxXyFNScKkaeu0ujFuqUm8C4uK8CASN86b5CF4Pvb9tLTNWPxM55qY1SGsFD89lfRedk3yjb1tLWovY0UUi5qyPiHhZ8IMpEclsGJF7dTIRFDrpEZvMzJ3+PqmOuolVI2XSrbBiOksn4rx03JsApi7cXViC7/T0//NkJnHxHH61U2dpQUClFC0KdZUf0qk600= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bdc2bcb-31f3-4ee2-23df-08dcc71fd9e8 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 05:11:19.4519 (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: Oo18zBEwWk+psBDsiUcBv2BoyrKIbtY/7IKdAntrhCop3c2p95AZHG5uLrSfVn0yJ7fBY4iNDQrBa1JD58PcjnPJ5n1tq3nmX6TgUgHLdnFndip7yj7utXh/NYh5adMx X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS7PR01MB11955 Hi Rob, Saravana, Tomi, Laurent, Sakari This is v4 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. 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() 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 | 140 ++++++++++++++++++ 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 | 70 +++++++++ include/video/omapfb_dss.h | 8 - sound/soc/generic/audio-graph-card.c | 11 +- sound/soc/generic/audio-graph-card2.c | 113 ++++++-------- sound/soc/generic/test-component.c | 3 +- sound/soc/sh/rcar/core.c | 21 +-- 14 files changed, 283 insertions(+), 173 deletions(-)