From patchwork Wed Oct 9 01:45:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13827387 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010043.outbound.protection.outlook.com [52.101.228.43]) (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 CF5E5383; Wed, 9 Oct 2024 01:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728438333; cv=fail; b=iNgYMTow/x+veOBNqNuOw9HhFOoT6z+oQ9Vk2VkSh/rR33I/qlBQ7OpuW6wFMpnc5PmgEp/gYRWupVNpR4qsKPQKq2JK0jbogIq8/pR6CAIyiMu44JoZ745vpGT/rt/Slrij1TdXaoor+s4p3sTy5iXo2AIRfnMy21Us3NqvtZw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728438333; c=relaxed/simple; bh=CwXhfIInKsODBS+5jf9i/d70mHTXCFNBAILpF1Odyz8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=bfM++PTkKgiuAXX5NahQsLNmAtD4dYSSGGANxw/JwRXqyeeRUNWkck2a8zA8VdjnDEIppGIpP0+27qyrxEFjAIbJYK0RxLk+w8PllTwYqdukGx/trF8tANTUUxGCUfU50Y4KAdaNRo5wpLkgVlkFl4upvLcW92A5Fx/IKLBn164= 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=VupuG6YU; arc=fail smtp.client-ip=52.101.228.43 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="VupuG6YU" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Nf3Zi6gBIOyAoOMDBqxVITaFBG/7PKS/i1xRsyQByll91g53PMpVISNKKAli40syjClzMWGJR9U/eX5E6We1YlZ7pFRD4D+IJquJXSf/GK553de4DsQZVFmnTeC7MeKsw9U6VDz/DHmMP0IUaxXbfia+I41HfK8/CNUFfk0mNF2hUtl3704hZTsnJGbdlzjy18mY6y5RCekKsCY7L4amNcpPLQMUIDaJ7MBUbO2ln5p9EkPBTWLYXejshJhhX/Bp0/Ng7n8E0qa7b7eEwwUcAqMttDvge3Ovr6hvmLOSIkvYI8ET+qMjWlEU9EIGwtHExA1KhSIaKhaTF8rI3V6/+A== 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=OJTI3fVU7PXFX1tjVUU8Ye9r4QnjQGrtjmmqI2Oz+XU=; b=lQdHoPFXZ6eNTEnhMh7DHRzUoZkuANdHnIV2mv9GmrWaFpmfHdIH3l+mLXlfit6cN31S90RPQFpf44XEG2MmfbVqb7W+oCB56R0LjqfHaNaIbTcJbnwZPalgTwxVgoTe+CvHMfu7ZJjbDE1wm99mIMXiuT4MyzOX9V0GHlQmLhHglRm10+HbxNMZHyF+68qn0n0gv/AMqmy0x6wSVO4XN5lOJmprefERvAq5arwMxFY4vG5mKTNqdUYG8UfxG+ya+ZOO+Xdx7HOPHurjnusY+qKWn+rT6T3fjeF8WX73ji26RN/bemGLLvxM+sdwct1lyxgyvDvxmKuGYcKzQv2cAA== 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=OJTI3fVU7PXFX1tjVUU8Ye9r4QnjQGrtjmmqI2Oz+XU=; b=VupuG6YUiYKU/vXypv8a4TgGGfSOpoemAPNj1TqBvlbknYvDX1peadoA8z2HHkhlK/Ql5eAGnTDkoadW2U7XfkHsb7/yDiakd2z+dn3MCTHEXnh40W7m35l9nOVMvSlN2jMvXkdS1jh0U9TDjKBOF4Sg0H4zO3jHiFrXjkc9hcg= 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 OSZPR01MB8765.jpnprd01.prod.outlook.com (2603:1096:604:15e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.22; Wed, 9 Oct 2024 01:45:28 +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:45:28 +0000 Message-ID: <87msjerqvc.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v7 7/9] gpu: drm: omapdrm: use new of_graph functions User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 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, Sakari Ailus In-Reply-To: <87wmiirqwy.wl-kuninori.morimoto.gx@renesas.com> References: <87wmiirqwy.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 9 Oct 2024 01:45:27 +0000 X-ClientProxiedBy: TYCP286CA0099.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB8765:EE_ X-MS-Office365-Filtering-Correlation-Id: a3f106ab-af44-49a8-af0b-08dce8040d4a 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|7416014|1800799024|52116014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: DvyQpDL8h2yJ5v8bWtpAabZtiFOssUg123VkANMZl6GHyCwuHTN3cgmCo0RB91sNe5GsHV5KroC2pTHca4A4odHxZVa5YM9TznuWd3skHzKfdSyeTSBMdji8V9QpjwztC2qhEqEneD6WFqYd8SErvc3PSXvc0qGUd90/f4TB2UASpFGsiCu7TLKJmfz/vu6+W5pTXaBlC0BEQQmo7rygQZhnbTwUpszLkrzva0JM/SGXZakG59EnFL4z+4nTluPHD8QJPMercSi43P8Isc5mah0Rc8pLM8sNFAUbbUhVnwTZqQnKxMhqEtVn8nXo5wjTUkpYdg1x9AzoJx6nqpTvfZajIj0aX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V:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(1800799024)(52116014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: m4kW0iXR59GUOoOQy9/upV87YwF0vZu8Xu+mArDHHTMLRxc30fEF8ztYle6bG056TcZp7OnR8YKhAmXNydOomqYyYiswn5Fx4HJwO4PKZo4KPuerEd8tw1OBMFX7OY4iK3vU1AMTnpBecMFHcQoQ7YLbz3QkrbIELx19e6A1z+3CXuds9rPziX2CpTA4sCKzwgw2WEaIrBjwrNRUC/tWDkwvdHQJZfoodWyhUwEwYHgGhl9NwE9t2y/te0M7ak4RB1P44R6WgwjIWB0Oa4vhWk1tomrHcEfKJCTgSH8hx5scQWMd8XVW956T9hDi1lp26kg23+FokNoOw5ZafTs2ODn4Yv11O3vuQxraj2hMjXKdm5HomeI89GEoL8XTnYjQUMIIhy9tlUuLYp7E+J/G2b+GEpr73C08vC7mrCVFiTzjGvP3nz7RQOmqrOabsWxWi/cdMJXf2X3VWPLV4IQwjW1aZgnXSPSaZcCgk4nbxG1tgeFXfhBxS7R/k25lRcnRW541iJl16VV9otiQUMcTLXIlvcIO5bxhljM+0GertSZUZNPzzTbCK/11wLqoedivRuqEhT20jj9P9KUQQbTNR56O5kk4YZEeXHae5P8zOro/4gNvugHTYQDiT4v5TUZMMDobwpmoIsvoJV5Oj9foClmXcYJEbE7Ww8xD6MndX63PP3gfMhwMTdfFk6PrhcC104YFQ48Ou69khaUM8mbWuCR7X57ZM/Ggkb8WSvxTCN0HxrvOFFAfRiqIuxHgZX0isYx7kkRNRwvjZlXQkgP90aitkwuY5LnjqLRDhbDvz3fjLdhK4Ydklz9gUd7AjpGR4iFkxjUecdJQeZ8tg8cYow0zVFKX+onyrCugCKqmhaWK8iRp6qG361/76CNyxof+m8uQ+gXPRws6cku3TAjckVa2FDFFO8n/78l1fQZ5OM8fh3XU0a5hbxcGvInrZU4vWbFjRgiDb/7Sa7YVk2bm4gdWv2x01ZEMsJCoZrzgZmIBjK3olv+qMmX/5Cow8mm1kZgdYZTUmwPy6mlOkpDOwj4GJxcx1lkkWHc2V/27joiq/PehTguu7Eq7XdTaJJtR9ebJGfre2QXYphiVGZMOmhjH6S38Rn9munhP6CjMYw4CHVrdat67KESOvIf2FJ8QI66SxGuoYYgbEc7/RF884+qu6Qs7lovBmN3dK7CdV8H/AlHXMKUmml5tpP8CkyWKTYDusECRe4SgbBn1ra8rjNPAGyIbzbCZ+4EoZUuYq5O+z6dLEt2mXTcTxcF1sxDvTnflDsbudB4kx0ZE8LBalCoBaDE42At5qBDUfsX2MGS6LFImp/hHOQGCnOVntUnGN1Q6JZMxiYlvqbw20DjYZ0OtJQv+xabrb+no0/L1b97ovBXMjS87mzh7Owk3SgxF8vONoMQpZp5aX9nuHfuoN+x10sDlin1DSIvDU0OZZylILX+6DQYi5hjxhUBZqQ06YzR0WWQXy9z69PO1JznQJcJXmhkZ5NL6MZ1hGwfjAJItv9MhVpJ0R8zX4XMyQ9naaLeULT89bIiE74DjgOseapjTIaJ28JDuqWnLI/zZTtj/sjW77gQDKx9lFpPYt4iSay1+NamakufZBNTpLv+XXqapYJzPNdT+vKHQDVGGPmI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3f106ab-af44-49a8-af0b-08dce8040d4a 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:45:28.1370 (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: hy9SQO3T0+JX2uoiio0rs5dO2kBy6XjG4wQyzUKDWNO8hrD1XhSdw6VGy/pQAscv4Vi+Ng7smsr2LkvOBsgQATy/GqUGyKHywEFwRjsMEzBQrPnllQnjfYX3G6wHvKVf X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB8765 Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Tomi Valkeinen Acked-by: Helge Deller --- drivers/gpu/drm/omapdrm/dss/dpi.c | 3 ++- drivers/gpu/drm/omapdrm/dss/sdi.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c b/drivers/gpu/drm/omapdrm/dss/dpi.c index 030f997eccd0..b17e77f700dd 100644 --- a/drivers/gpu/drm/omapdrm/dss/dpi.c +++ b/drivers/gpu/drm/omapdrm/dss/dpi.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -709,7 +710,7 @@ int dpi_init_port(struct dss_device *dss, struct platform_device *pdev, if (!dpi) return -ENOMEM; - ep = of_get_next_child(port, NULL); + ep = of_graph_get_next_port_endpoint(port, NULL); if (!ep) return 0; diff --git a/drivers/gpu/drm/omapdrm/dss/sdi.c b/drivers/gpu/drm/omapdrm/dss/sdi.c index 91eaae3b9481..f9ae358e8e52 100644 --- a/drivers/gpu/drm/omapdrm/dss/sdi.c +++ b/drivers/gpu/drm/omapdrm/dss/sdi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -346,7 +347,7 @@ int sdi_init_port(struct dss_device *dss, struct platform_device *pdev, if (!sdi) return -ENOMEM; - ep = of_get_next_child(port, NULL); + ep = of_graph_get_next_port_endpoint(port, NULL); if (!ep) { r = 0; goto err_free;