From patchwork Fri Aug 9 04:23:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 818464 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011017.outbound.protection.outlook.com [52.101.125.17]) (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 DF7231649CC; Fri, 9 Aug 2024 04:23:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.17 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723177404; cv=fail; b=L9CiHexvFiykI/aD5v12FSl0qPpDS1oOq/bacbP+aNVdrRvH0tbOIiAS7gWgCWMbj+39jkalsDuJbB9Ryuu4ECYKDwqPbgv2mugdP4lVIk8D8ZbacowmTZsKbpmLFRAJIFBoBEHcDcXrDNIn2z6L7jV4/87lwmHhrfa+Xlwkjjs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723177404; c=relaxed/simple; bh=CwXhfIInKsODBS+5jf9i/d70mHTXCFNBAILpF1Odyz8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=Qqjl7AfPuTCLfiL3TGckpN6b94huLSR1qb6iFCIQsQgr3p76rNsYcMg3k1UwtMb5jcAMV0xqxSabS70FhetbHRUx43gnhegBHIvzouHMatJPILimv3EvJNENZmrsSm/V+XraI/JLXR7YFn0JPee+CNw1MQ1KQNyEWmPwYWXMmOY= 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=ZQht448R; arc=fail smtp.client-ip=52.101.125.17 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="ZQht448R" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ErToRkis1yq0Ulk1F50yFrTMQAKUtESmZmLyXV/0YzEIAyQfhkqnTCnKP8II8a8wTT6fL59XqJjJITmTpY+KG1jDDmLcvaFqWP2lGoJwAYR3mdEJ6kk2zKth2/j+hq72kcxa5iKD+b/52VW57PdQxzfAzPtreTKYsK3C6yFgS4HfGOHT/IKnZJNk1afCkmOzSDMNOseZiutLifAEQ3hihnQFSMW4Mkm2DjdvYEgM8PO/HnbBaK/iQd9nxg5Zuga+94gCaKTlB1+fb1RnPFyfYQ3BTpZpsBodqfm0/4eB9ji9EQVYfa0Puc9kCGlShD7Hb6swbUZNnrbwtWM4fPLsUA== 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=nvRiSeyuE7KMP5NQx5Uil1pMPHsuT/kOpKAwVkug7sZbRRp6ARnrbnvk0KpmcQgu6TmmHaqZ4H28cmh+U5Fq7bLlOIMCx7xrUgP6Xy7trpR6Uf6ZVZ7nl1GTSxGnQo3tedljQQlF2un/KAhUPkwiwDmylVdPVIq6GLNhxHKCRaTpPgJ/A5k+8C5MKlJ/tDux7WKocT12sy+WNbnvKPw6TzybPMuLKBM355hg260ZQqtrFQCiOeL9gW+4KStQ0jfvD3r4Uga8VIRhLeuHyQEg0cY2WwXjbPXRlFrjN8NfeuIVRdl2ESQ7F62WruoJQhETKDKUv6EVnxa8vg0JQWdD2A== 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=ZQht448RcfE8uFrQ41XWg4nb5X60h1DgUMdTH2jXFqPBjPsTwfS4YwLhz/mCTmfPOXMpvpdH0ubxbI27Rw8ULw5ENlI0j1JQJYThSR6z/BJ5zoWgzim/BaxdhHkVYYltkkFStafd8tKV73wCMmKKpZ45zRaKX444haUQtJy+Z8A= 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 TYCPR01MB6400.jpnprd01.prod.outlook.com (2603:1096:400:98::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.15; Fri, 9 Aug 2024 04:23:18 +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:23:18 +0000 Message-ID: <87v80a72a1.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 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 In-Reply-To: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> References: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> Date: Fri, 9 Aug 2024 04:23:18 +0000 X-ClientProxiedBy: TYCP286CA0061.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31a::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB6400:EE_ X-MS-Office365-Filtering-Correlation-Id: 78cce64f-0d1a-4ba7-e9b2-08dcb82afeea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|7416014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: iZ1V49iah9omc0dKrPofuDkjuWB8Pm5ZhLTX03qnwFmwST8sxSeBwuJhUB1/akaZ2ZtgZ0iriBRqmdCWGZbc25VKZWQi+miKGbwG4rcMR6cV5JHhbmlKoiq/UAK0RWxUvEFtLOMk5PJv/CH4PHnwrKWHJPp8BvICI4/X9GBzT2CSDESLABi4MTZtXq15SoVbUHKGTcMexlR7NBCq3VYkWfPsZsZDItwwXU6D07/oPimaxUnASHgS8Em10r2xTsuf8nO/eb2w73IX0Ro90w+HTiPyH8PRC7f5g4vSXG1qC2mkwUh/pA5i33JiRFy8cMYKeHRf8Cxp3O801BlB9EfyVyVqA4sIVQTSh45glyFiiHKr2fao+/pQYcgJXXqlEI6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: 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)(7416014)(376014)(1800799024)(366016)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fnJpPTPUAvoGA9zXKD88pfQpNjN6ZrCgl2mTeBXoTUbFIgm6tbwKezYJeuhZV5lOYTVv/2H30vVBp1lyDaC/bZCmaqvjcxh6Z14sLGYJhcgWkPA1SS/KCQOOYj8/UXKCiN4h+Li0hZZRMZYwkQ8zkqxDAJB49sVNwFbyxeghviXAGzuo/WEqF6aa0sPeIoeSZgOQMUBVlx6wuy2eer9OiSMHoQ1KWcNyL110ZaQHTx31KrsP4E1IBEmwJ7D21l+auP9SnogY5ypMCwdQ/c573KGkrGfRkZieU7zBUwkDLGnhEVsoyjArIW4iGqLJXdP2W1nFCDKI+ZYhPEFlXE2GAEvaiDGJLSa9EYHD+VO2JFhAE2pWGswfBzxd//5FSqfN7fYUZQ1AgKXSWpflr31AhZLGv0zhXuECF4qt6EHQrdsOAb7mGg8f4r01qozpUD0DoWxpyz6Uyu9NBUuBfJea91MjvkzmAWU0KZWeVvJ1uAi0xHznkbAqZXKlnH9B3PzvNOJtF7U2VXnVQWM985OgOKaa3dkP9MCUGQ9ywwk7fgdVPMZUqUckyK/Ph13qHh81V5JDgtGqCzoXimcaH58heHDCOJgGiaG4OZOhwlZ3HIVMEkbvEhn0QGOJgBFhMAVVPngb+nc2vj+GZVKkBbgMzs1pQ9+so7/GVoj3psf+vgQ7ZGL7ZmTdkQzJbnXuNXUFWkolRt8ACkG4TvLIDF/eu01og6nhy9pNdiwrFu279ve9I8FAitbbagUWgPAQN0KCCH/KPNhx33eLKahcJU1kWCWkE2XxQR13auTGOZlerzG0EddOM+ncvNlDtzW5mGy3oS4yb8Aro0DTbJsG01bDHTem+q0RjyDi/zjFBC5MyMIjAGLyYaorchQpYWKlVg4MLbEGXroiLLjygBh/sqxiMTEY/G7YTv+JNdd/d6w3fDFQEpjMyqj71beOVA6rhyVaLEb2AR8IIwgMkzoe1lH0sVdngFOZ3qiRFy51/JJ7YSe0iu2WkDmC7m6eKznP9RU6UYpqTs/bE2ijZrKEv4TU7rEV0+g07CE0pj7EP7swGJ9YhZYaxltUCgbNJUjeZyVp6qFo6+sfB4VRK3qqCX2Oed6WpyTXZboYo5h94aiuhFmh0n3OdsDIV/26URV01AJDCfa+SIXB4DXLUqGo/3Tnmh2BMCJtMX4rx2Ld/r+A6Gd6LOq2Oyq9E2GL8BmICRkKWhV00Gvdao1ojt4BOTIAWTMs6qXtg0nnhWaavLwrFC/8ojzHKITh9bPGS6u6pZqQoOhfFV7o9OyVpdeZK/CClzf0BVTYNx5xYMvX3y1RIrk+AX2mqEIe3iIfqE/5k6DlNEvbpI7vt7k6ImhIDec2mpyGc8KTS0orwlT6HyXhhOs8wOenC65OswzkdIU5PwdszF45Rzb1eTJkGYtVIN9HCjotxH/whr51axwoLqJPQfJDa6SMLUmVBF2FrFRnl+sEDwBPrVm/+j8lDTPZR4wSv5EZMQw7mtFkyhN7OCGKXJ0jBoOPt38KYlSBLMnMEpZ2d593JlEGB0PubIk3O5zUzD/fVhCnb3eQAHl1VRNowGOm/iREDrR62B8lL15tKe+oJUcKoL7/PzR2MyEhN58i28aiFRkTPHAgmFwK/AxXi8c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78cce64f-0d1a-4ba7-e9b2-08dcb82afeea 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:23:18.5635 (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: jUSA/4hJ2Z9MjjR7zxlReDh5lgad/opFMP4s6kmTH0w+V9vsmM8NOmKhWzGXm8LqCkMNeeskKvP2RyvzWiMQnoEDnpTByN67ltm40Ka41ryK2oXYzvs5oNwp5AjvCgpZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB6400 Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Tomi Valkeinen --- 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;