From patchwork Wed Aug 28 05:12:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13780579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D0B1C5472D for ; Wed, 28 Aug 2024 05:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Type:References:In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1UeslM4FQH6N1O2L6SqbvVyNONUE0o4X2TQYeq8tCfA=; b=XO78iZI64al0j6p4b57UmT5aSl R4vNwtC0qWAMsgDYHiIqxA0TK/6Tg+tPse64U42k6AYnEBItWk/AbsC2VnAqCM+8jgkutp4aYBPyr kfWAqg6R0O0eGNNldrsi2NzbikLsxMWp6CXBa3cn1PzFrya71YY3qay3xB1zi3PMcXnMWpatZn3Nm kfWbLjwZMJ7vKAkRt0bNSgOmOeFCg2WB6szBFelVEyT8KNQY7wuCot6lWYg21GOjZByUjBq0AyzXW BLNEDGS9q3kf1QLwNmcTrv/MB3RujtqmxJpQhqUe6PrTbvPFTdWev6YcjPBjT5zkUxKFPPralim+m 0+abQlcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjB78-0000000Du8i-3nWk; Wed, 28 Aug 2024 05:21:02 +0000 Received: from mail-japaneastazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c405::2] helo=TYVP286CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjAyj-0000000DsPI-1OfN for linux-arm-kernel@lists.infradead.org; Wed, 28 Aug 2024 05:12:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J4q99qRDMEEEos30gYTovgLVQEDbPtha5gWaBH+4fniRNIdP+UcWXCkO5BThpnD+AYR82S1WYbrBBIS2JCI0GgM6OX9e0+3Bwl7E+gm3uvX3n4CEe6oRmb0FgkXlYoZ/6XDHAPxpSzORqL7Bvgm9ZraFOvco+ITpKWUACfTSQHBf9wrdk00sMgxrIInAV7jLr1LU9yHOq53BZXFXZ1PekVGIj7TjkgoouPZ/tURivV072uEelVFL02VcPDTsanmpx2zU2sENS9gbPPsL8jx2e40ANEZsmYAj7I+Ht1PwCxdGCfoKZRzfknNINsLR4LJL/yhEh1yilQyJQ4xVblrIaw== 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=1UeslM4FQH6N1O2L6SqbvVyNONUE0o4X2TQYeq8tCfA=; b=M7IYzIIOnHDAgj+OgXA6Ds2HHlOQ2ne0nf8ncdfgf7awCXZr+cisuI7GiW2/joZ7sWR9WgFTEUvvPOrXmNaKvcJpewPN1WRu6WxOmUA/47IBSN0sEtWKrRg4PbcnPVm2ex2t3T7tPT93Y4fPJfzkXmyR/m9PnUYJ0BdE+U4l7LZyzmK2Qsk0Ki1B5flmHeCxvhGA+9chF47B+nslsqSPugTMTjrLb7v8qh9TL6lYdU4ezSnMx/11ZGRYuqFdaPZm4JK2P4e9tgTgIxs1FLA4AO0lfgSSXzUWr5s+jmHCRyo3DuNoGQUQkrrJTHNv8QdRxShh/F9wpG7j4mNzkMZDag== 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=1UeslM4FQH6N1O2L6SqbvVyNONUE0o4X2TQYeq8tCfA=; b=HO4J+wn75TXcLCKs663XkcQHEhidWQAdaFui3T+C9Tn1IehZ83s/MNmtnzu5wjOUX9TxhDi1i60/N+wR6LFe3YUr7ytaFghEmhoxX8j1BfRk6ly1l5n38lbKIQZCGLnVEN+Gakz7gBKyY6bDJ+4/4oIA4LxEFXomxclaTirmlfo= 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:12:16 +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:12:16 +0000 Message-ID: <871q292pu7.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 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: <87bk1d2pvt.wl-kuninori.morimoto.gx@renesas.com> References: <87bk1d2pvt.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 28 Aug 2024 05:12:16 +0000 X-ClientProxiedBy: TYCP286CA0345.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38e::6) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS7PR01MB11955:EE_ X-MS-Office365-Filtering-Correlation-Id: 71a68700-1a2a-429a-549a-08dcc71ffc06 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: Ky8X1IsS/NowMGa+vZm8WcCLAten1yQOyX8YvoMzstGcmTDV8fZxSP4E5RGVv0NoLuRSZTbrHVvSw0skZfMKsi1GqZZ6U7tRgGGm5qgwPyjGIuCDBkMRNQ0kLv0NLdMDi+8bOU9NfjpSSZZRPGm/Zle3ADOZl/ljY0D6RFPZymV+zqIDGda2D7qt/hBojC+9QEVdShWjZY5FjmwpZcPK7PceGXcmnlqDfQfnK1yLiKHwV4qu47a8mCqFZzMat/XEUd4pPOPQqMA0cQLtHW2Lqi0N5/wwnvUpz1KZk+ZyMVkR9sd0nEFBZYzNU3UzbkFV29j5VQnG2c8yuswOCdvN7Go+ZfBMZg4Si58ZsXr+e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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)(1800799024)(7416014)(376014)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y0HXUXaub7zvBCWbqhHqVlo/o56osM/ctCzpILZB8h5k/6mGkbx23093s1m+6XwHctlo5HTjHGQrwgOfEaLyDNXCo46RA3w5tFkbH57c1PGnthdDqwwFeENRW8+V+5bIWGOiI2z/K8sFbkjwKdOlfP4IHtbwdjG5b1n2x34QNDWEPhAK+m119qljaP8wcNWSGkK1eC9/eOE64IB1ENbONmAZzy7GtF/SqQc3eOI1LT7qsc/gAvFIuGPjwNNlyqO4GNOeo2z+xZkWib/85vDvkZp46frsvFefQAUNndUZBpjfIdbUSFoC8aVS9pq4pN1P/rDbX8zGCzsILZWgLTQfmEwwoUOGgqBB6L3Zi/OLXbrk+RtOGzbRv2pLWCjTvCgbYaa0t3WIuTfwWIDnn9hnhDi3UedlqKCCO29SCtVH/TgedejCuES5TtBRyJubd7U6ENLVCXKwZ+17cIqxBftbpvh2mG2Td7Bf/QJfpF6tdFTfpUtUoGFzUv5iCJoRWg5xBWLT/2x7hXMEe3bmNzxIu2lv+9DNskuPEYMfttAQqhzHW7OoaQ63YjPxQhKqv3zrssdl58x2JiTNKmImjCx+yqAz/jLCrO9yiRKHZsg/PpAjvryIh0ONmAb6v0aZZTbSnAdxq1WiFMG54CkJGkbuO3mJpK1vwWiNAinAp9wtQqyyKaFo6kGKsUnfepqGo6nYlv/2PjhThaT0atnnujJURHDostecGq67/z+wuueZbKHKBs8CdYCMZ7d5GcPYN0GNCWUXczE/Kb3BzBrUAN/0XNF+JoTV4dxh+qq0teYGunNguTMRNnoIC35t/6i7PD7xkYwNA11jhK6y0s9cTsVwqmeu5Q+8R6+M4eoH01TesZejiIh0JElzshIh7lc8N9uZ/wOEsk8Ro1RLFJFdjIbXNvKcM2Kk9tUM1dcw6adS4R8t07fAKn73hjcbgjkgtsiADmtMPijmRrwKbXjEkVAJvv2fcxeKxYCQ4GY6lzN7XMny6vc751BWUcFditSyVKcfRLj5xwhLTxABio8alcSW8ptaswla7i6O+Eop/6ifCPlGJCdjnITDcHnRQ0rWZzf+m+e9SfNXhF4pZlXZnIACvuoUEE1XoVqR8lsa75Cd3EWRpD1ZXxWqOYzGOLTApKezPD2PTyVg0YQ1rUZzhdtNQTIS37AqaZ8ry4z5vJOGWdkwj4Sw0nTZQ6WlMSYKdJd9u5DJJnHdaLe+AteAXI4w5q7wCuumpVn9tBa6Bp1zbl1CpLvJwgNVpIhFjFjDwiOo0n3PHDdYH6qThRrZQCgVtv4cs8uZfx9F0c/TwYKXWjGnN2LTl6mCuINfh8QGgQG7SmRrYnfvpf1ezkQjxFOD251uacsEFkN7pBy5TRGZcOhXOHyuDbPZ7v95Fuc7gNfz9XX9GAwI88ipjTRBRR6fFWV4XGKWVlmVSDHy9gScBOr880lXvS6YdD0KevMzulz9FgFd9fmOh2UsRRbz217txEGYx/vBNrii633pUd3YmzdOXf0iXJxxfOp4IaPfwv2is58u2npYYPa5dpFkD4/zTp/ldmi6OTFnD3J0knDJ9p0OzQUK0Wkh0t6+6zCAmwDer2J8CzDHPt0L3qD10k/GBBzQFGsbxXOWWaZBi3AULHI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71a68700-1a2a-429a-549a-08dcc71ffc06 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:12:16.6671 (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: MN1Y+2AKXUIL5iyj38x5z9w+vwaqCYKGRF5BpeP0ZNN6NSsjV4R2WpwdOVm/lYJjTyj4fzli0jbsJYSZ59WA7C1cpcXMZcDNbtFirSqSDuI3yvYn1FULiWX0fTefKsnr X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS7PR01MB11955 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_221221_397039_1DB66A39 X-CRM114-Status: GOOD ( 11.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 030f997eccd00..b17e77f700ddd 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 91eaae3b94812..f9ae358e8e521 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;