From patchwork Tue Aug 6 04:58:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13754429 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011016.outbound.protection.outlook.com [52.101.125.16]) (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 54CE71BB686; Tue, 6 Aug 2024 04:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722920335; cv=fail; b=Hl/0FRqBOMxsF8TwbLZVKzXq6c56jgeodfOyJh6GTwafkPnO/orlh5t5LON7cyAGUdx9cMfU1YRGt+1Ya0ik272DfwX0ErU7jO8d+Zthi4dWhjxiDXlo9dOdtyI9/NLR1BwlYA5om+zACnIbg8D4ChWcR0OvfEoXHVKgk7NiHn0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722920335; c=relaxed/simple; bh=vekqv2V7YzpI9gHp/WX52II03uCK4weM4+cpAVHPCIE=; h=Message-ID:To:In-Reply-To:References:Content-Type:From:Subject: Date:MIME-Version; b=FtG4nZoOCEfPZEtxJ0wTr2mZAIHL0UvGVHnj44WQ28T1IGCp1iEj5dxfZROzZPiRD18CE2fAZovnnVWBylKvY6w7LhhPQWHvjJIScrgGaQvkibyPeBib49rjRkgY+g++ttQ40Y+aKQR5IQ0sa9KMw07v1WkfRH6Fi3QxdUWaJRM= 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=MY4oXVAe; arc=fail smtp.client-ip=52.101.125.16 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="MY4oXVAe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=I+hlpF2Whx4BSXwQpBWB8cMeFKJY6KI7/VJG9ok25M1cv+SQ8Vz1WVrAl45UeIGNBBxUjwOSz9TBTUIa+Sx74Mu54N8UG3LS4bXFG/CFZ6L53Ky9WSW3y8hpgKU4ihezZh9LCSMOsnWRkNWgoYXTajMKEfsYqNMjsBJjBc35SrvCm6NfP4MysEvYD+2P8vzMjHSBtLxPAClyUpl6ihekHUS7r/zCo+Jrka8pGNUSNDtFIfeDbWKdd/qIS/8AMQ7G3L5wv02HFD0jzqt5quOHzPvwqzwg/pxm4zWSbxXi9jUymZlqKvZP41YObh7QeqrI4FsgYBe/aZN7/Vy/DAoM8g== 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=uB6Fu7dPk96brYTuEHSz083xYrEd9Rz2uuKrvB+9cHA=; b=UhoGSRjbhV9uw55yL9ycAlNQ/U4Vl32aZRrNL1iFNzFpJim215n29gc76LBH0lDa/M1zhAgrl2hlOUpw92NiNjdz40sdJtvb0y3LYsUwAFkmg0+olyDTXYCMxNP2T6DNs5N+YfYUGu4QbkMPCenzoUTFaCtZO1iYjApWCQeWOnGjCBohgCvBnHCz1/5xJmuURXJGPm7HETI5VQzN5kzOSndwGLzsZqUUvR4lip9A4Eu64n4Dtpq5aXOi1Vkra3jTqbxJQelysYNeCkNgxl6WjfcrjgFN9iJmagkVeeuFoKACJon9qSJHclpikcMVduM1mielhVndG0HfYp8RjZGW3g== 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=uB6Fu7dPk96brYTuEHSz083xYrEd9Rz2uuKrvB+9cHA=; b=MY4oXVAe0Cx2aWgpEXOzsdBBJWyB6JvP+XwVt2qQI2kCswN/5D0o0hRN26GFC+fz7oPQqLLXiO/sfj4TxXlSx438xedQhw9oVJD4B/P+dNLz5uV7UUZa0qQUAbx7M0WjG6CXvffgrTlW3uPhweRTDkJpupePnNLbS99/eI7RM+k= 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 TYWPR01MB10409.jpnprd01.prod.outlook.com (2603:1096:400:24d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.24; Tue, 6 Aug 2024 04:58:50 +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:58:50 +0000 Message-ID: <87cymmw8l1.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 , , , , , , , , 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 , , , , , , , In-Reply-To: <87mslqw8mj.wl-kuninori.morimoto.gx@renesas.com> References: <87mslqw8mj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 7/9] gpu: drm: omapdrm: use new of_graph functions Date: Tue, 6 Aug 2024 04:58:50 +0000 X-ClientProxiedBy: TYCP286CA0193.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:382::6) 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_|TYWPR01MB10409:EE_ X-MS-Office365-Filtering-Correlation-Id: ca0de283-a24d-4d42-ae07-08dcb5d476a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|366016|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: cJV2fvZV7lucPTRO9kMYSw0PvSeuC3a2govN1jyn3mMKVevyS6tnaqQOFT8ekRMeBhu9k0OzExXwZHS32Op+ZWmHgOLHhHxgkAfo8zTrA0T7wZCiQuMcJeOHXrmB8FwYITNl5g1FBHNOgBesi6DLtIaITFdUHPE3cF7+NvAmtyUhLov+ER0BQLDvpgtERozG/fFPGPoIdCpN5YxB0SzimaoFLvMTY4/2RkPWhzK0KiUMZNLVdqsBPcoGppqq4cEfJLJea0D4Kge9jiQcHhMxyGj6WnY0+4lin4X/VLXQsYptVuU8P3MkdyWWMJW6qa1VizaYavzMTmWuzIL3sGw6JW7zS1Lg/tY9mN0mP7dmmAJtupwulf4ixd/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IP: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)(366016)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JfvUkosohhGTUXMWi1GHDum/ZsVIbr7OO4DBKyw0M0SdQKGyvpZkGuKA+iuu7Lj8z/4RMOZdvcMDX6tmUQITAmGkdMY/iB7Zs5SzUxqaUwI4YjCUBeyPXGLc0P227YmLG1Nrhfv8ou9eewjCDp3FOmHXALwB9Xm1Hmfo+Uxqr1kmrgYzAV/5epIObQWL5VV/NrCsSRGwzTor1wLX+c8AVblR4IE8HsKFuUR1qf6qwM1xjFxNTKAjLjwUu20ljAQBBCqsufNqm5n2O4PVqwq0GJdU7k4EfkwaG3p04k/NcOwRVz29cd748tvfiRdSh3/1kEHQEhseWZz3NVr22GA2ajCs3cbl7Wo7ysnkeqMa5xN/S1TuTEdquAaxFjFTWMtik9pw5oy/IH62Q2yFRzYwIWveaft0sqA5Nu39RAAemGpc1LXxu8CZabjxjQgTlPXmZfaZTpjh5Hfybl8DB3snd85J/ZyCved/3dQ/0ols45vJDm32o1St9eqFCWT/2tX03WQBf6rujoRifv44eVb3JUiAr8tJ6oCvI196xMm8uFZ/NU4sxkJpjTpBj2f7ps41Qf0lTm16lFqMdphYVONPapwHdrLLVHn66AvESxOAsC+2+nwQDnVW4fSwI+VrrheDqV1vxo+Pzr+hTTuvYVQn7caMf5fyqptcTdK+rLCq7KWG+36n7DfYdysiqAzuvvYsuRvQP4dzK0EfeWKf92i97exivwCWc7e+innWr3jpp/QXBN9gVoN3sNsxNYWzOhQlT6ERaY524pvbfKFJQZSDJPbqfgsrE9UpqFtoTfLix8tSl9saQkCk5duWbv5ZDl6Oey9nlGzW0wOHwjFpapmGHRhaXXV2D/P5NbDvAK/UNztkezRkUzmVe9RUSs2JOceinB9pBLAc02MaCb4B3OWgc1dE3VhcTUh8XU15nJKl6d+sFtnscmbISt5gywDGdVnWakP3G5uiHVfqTFj/vI8ZEvmsrsSkwpBbKSbohqaGsACSIL4Nt0tetK0WWf52spxJboVV1HKHRUU7iLmK9UPndwmQ7qi/ueoO80b1AEtp2r2vAJjaQ+5KnEoK+a8+zYV6rrfj1xRS3ZFO5Lo3c3Wdh0wV/8wCVnX1g3BlO4kN67lKoq9MLq6JUAjpuvD5LFk3ju/MSCXTjvFS3PJy0YGYtnE3703rQc2FvRZE87loxDVoxrSVrNswVKgTFEmD5L0daB/Tr3NOCWw3ZbxDrDfsBgEoZ/P3gTqsAbMGEZ4YjpSR7cRmxISKoyvQgYsB+1R5qzu58WbI27fBUukRSmJLA2Kzir8gSIeFGZh6ixCqOMJzL9AzT9BXrlPGmc9LiV9740qC8BqaydnQK/SeWoQ91gy+/dvb6bYePrbfI1OJyNJgJTkHWy6cbo7YiEu8zv/o1i15jGV35ddOS9o5pP54JXxy90u7rX7GAAvOVs/ev1DenCDmUdackJAmv4CsnxafdlkduIbbhYJ/4SMSb1OhgbyqoPr/k8wckfVjVdEkqDmT/lujkDsZzfCzb4KNgiiIhFeqIh51neLqzp/PkC495kc8Ro3CEdzqXtobuokbar1qpE6HZz88u3tt8bNqcT0gfpSgp+u6qWhi7j/WnBO+7WGfK1FPaMoksNuCGCx2bp4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca0de283-a24d-4d42-ae07-08dcb5d476a4 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:58:50.8855 (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: Ay8Knu3mb3NTIFKenCG+shWcq91vOt2lJpWjSPvFjasN2h5sxQ6DbHnIz+4V700UB23+BWR8B7imUQ6lUQvqtt7UwyHVX14h1yxEv0u94vIJk2WrkYDYfWKv7V6o3b4R X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10409 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;