From nobody Wed Nov 27 00:32:21 2024 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011067.outbound.protection.outlook.com [52.101.125.67]) (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 23F1A12CDA5 for ; Tue, 26 Nov 2024 05:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599846; cv=fail; b=Vhmbjwju3i/RsbOzGYDF10FpZE81XUq5Y0fy/h3AGh5OwkaZhT4dG33ngBbKM9YnHMafMiFjsQmgVKTWBQLfJyqLnxr0rXlNnbldsQJPLGLKQkIBp0J4gDan4TnwLh1PJClvylOnyVv+zv81djftfwKvilHWgare58y2TzYb1gg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599846; c=relaxed/simple; bh=WFJvUcIHF9o4JekYp6EjUvGz4ncd5dqSYkLZAnOLvOo=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=l2cxqJFojdJjfKGjluGRDpc+0xQ165vkkZdnMKZnZxRrpp1LKzYXNYp/OMyzuPZZz42fYMIpCG8AzIetzvCJq4rMbpIyTWbPYx/1rYCG5VPyuTfXpLG0U1lpuxVklb0hph46EYZXEi0QdQd3VVUzfi2ht2BAYSeEtpeWfAunlVc= 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=aMAJoMTq; arc=fail smtp.client-ip=52.101.125.67 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="aMAJoMTq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k8z9oyibkB/b49rVLpcFht22lOxAhfXUSFOyWIKLPdRYOdSTgXUAuDeEUk/Ul8I4Wep3QM4b8v7rqrsLtZoQ4jvwgnQze10u3FuvGCsI2G348r7PGBUwKa+Tzs+JidFHozQdh7v5hgRrZM0HoWOTtpsCZ5ogVpRPpXuTyM8h/8+wQ1j4G5IXaO8jfkhXcEW6CgNKQIqypikJopZF8YbUbFVxFTWdDpgGkiJQkDn4vq3Mk7noTG9ebwgo2T5uiy62kW8Ql5eBGrau2P6X4m2J0xGsWQnDuIWrzZDxnCgU+20j0M552dxsnBvwNh0O6Cu+fJrOOKHgsrYUV4O2QKCnwg== 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=CZdFGTdJN3ehcbxazPVepBkaAaWOXkTkIwh11C2cDNc=; b=vlNBpyA8eJ95eqE/+GoqGCt/ArVX0sLT11zhtyjTCNebqZHkvy8KR4snt09L004x/scS9X3G96V1M5AU4ALRL1++3WOKy8xuc6xNm0TmdtpFPV5hwrr8pKBOkaRHK2FVbrD9Bo21BRqUHF/oYrcPcUylFDIjkfIrX/TKcuYTnu4xOho1W9z8hxHLadQ96U8UTZqeWu9KaXe+jidnyxEFcObLsAyaL46drJXj+tZCmf4ylKqzjnnopKpQUKiww1yNttyNnKm56Vn113iH1ZQG3IFkzKiTsc517NlIYve9lrzQI1nOfdlOzROdHZJuLo2+HC5U0oTPH2WzgEM5qLKAfw== 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=CZdFGTdJN3ehcbxazPVepBkaAaWOXkTkIwh11C2cDNc=; b=aMAJoMTqZ++76zdhCxdJ5EZayPt5ql9UK9HqDvWkEkAT/8bCtvdgNTojJsbKnE87Yi1tj7xDuK/aiSorapFzqZFMEGnKid/Ul/DTgeXuNOW5OpIVFNDyV0j/8oAmEm5IP6M4X7vLAq15Zewh+vdRCnHAkhRftZ/hm7uWiz9oaHI= 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 OS3PR01MB5926.jpnprd01.prod.outlook.com (2603:1096:604:b5::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Tue, 26 Nov 2024 05:44:01 +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.8182.019; Tue, 26 Nov 2024 05:44:01 +0000 Message-ID: <87mshmsg66.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v7 1/3] gpu: drm: drm_of: replace of_graph_get_next_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Rob Herring , Laurent Pinchart , Thierry Reding , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Neil Armstrong , Jessica Zhang , Florian Fainelli , Alexey Brodkin Cc: dri-devel@lists.freedesktop.org, Broadcom internal kernel review list , linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org In-Reply-To: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> References: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2024 05:44:01 +0000 X-ClientProxiedBy: TYCP286CA0133.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB5926:EE_ X-MS-Office365-Filtering-Correlation-Id: e94eb804-44f6-4c70-cf06-08dd0ddd54c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?mMiBT6h8nwT3aQnbCoM/a0+N9vnBmMHpgLlxoRHKG7aWx0vjZaAn4fpGxjE9?= =?us-ascii?Q?iMstxoq3ybeZ0DyOfwaZf5XP7EvHRsR3epAgBp7Gg4tiGGe9g0nZU5gRbxVd?= =?us-ascii?Q?1zHCzNac89AQj/VutwK0ddkh+TeXt+tCteelwlNZwqQqOzzNT05aa+2OvLwq?= =?us-ascii?Q?cerrI7lEs//YEDTpCwiB2XIMjk+Mh1zl6icylQha7957IWlnl8sxUFS8dT+f?= =?us-ascii?Q?rr+WiS750T26xUIlQOJWVIPxLjOLUfrSWsycuLLb4R93FXc6P15bHM0KXWGE?= =?us-ascii?Q?TbeHwuG6XJZWoQ3YpT0bcCRcHLucVjG7o/6W2Hy4Dk+S3rhIHPJwosz0AAO5?= =?us-ascii?Q?Udk1+2ZWF5JhXckzykNUxDsY5cGyYXbXIFbMD8kuEzBbvpeBN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Q46pX3zE823nuv/j9afq/wloYllT4OOEnl?= =?us-ascii?Q?PW9J/z6C3b41Z8AZm1XvVlwiA1Oms9zHDjj6teilQakvc5H9oH7j8L5qXKXt?= =?us-ascii?Q?YShD6/tdWZnDM/yeLrgF82oQOUy+xtx2oPO0N1Vs00o0pxOmwvOU/ZaF7VZt?= =?us-ascii?Q?RwDZTPRStFc=3D?= X-Forefront-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)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TGsRtvZpyEsQe/X56BaGS9pYet6aHgeWyBjEav1O4DRcP0vOXS23OSPK5NM5?= =?us-ascii?Q?i859VpqHYOCXFxdY7heqCZ8tfJVsKVSM37ff37eA+WydVpIwXXzQsTpLGxxG?= =?us-ascii?Q?hpYgfM3WCo/fznoxwGB2Ynnik3YpXKKvUcHX172OAnd8hUkahxrZYDhmaFEo?= =?us-ascii?Q?vgA80qmBHk0nYJ527a1TEERJUahpWWph+wOd3V6UosUS41b++47G33/yVRNa?= =?us-ascii?Q?81x1yde4YTGkesTziJVERTBraOKGzrjQvALZAj7lO0yRs3BJoMcnFl+n7mAr?= =?us-ascii?Q?wEbsx9+/eHe0MJFvVJrMv/E3SXP1w6+rcDJKPuD0NkguvWlA11NDjVTfgVER?= =?us-ascii?Q?dUUEeMp5fvNRW3kvxWRAoUxvewp+v+/e54ms2zHJyjj4Z8bfKLlHN0gvLZ13?= =?us-ascii?Q?RNRIks3JklcLMNt7Zq4yQoZ3j7oLt4vx9tSM3stWermoA/JpdfGg/NUk+V8f?= =?us-ascii?Q?5TW3+g9o1pEb2qCbCZIw0A7UeKQ1NwP1pVa/mmzOxAF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LZUtVD1Kf63VKSbDNRIcKdRnLq8L4nk?= =?us-ascii?Q?kcpTGvyKiRqtoU4uodPeYXUJ/A8X51Nu+0FbagWXUemL1RB/fhHVwNLYTbQA?= =?us-ascii?Q?qO9cbd7KbcSK3GHfOarFp1G0f+w3BeAaf81b/rCsenAGK7ejAr6oNr+aLV2h?= =?us-ascii?Q?+v0H4kSnaazBXq5TBQ754H1Uaa/1EJ1uBOTdQDKaHr5aPUpFRINt7mx9B3IC?= =?us-ascii?Q?rWud6ZP67oZ3u6fg0aFk3wE=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e94eb804-44f6-4c70-cf06-08dd0ddd54c7 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 05:44:01.8591 (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: iYBv2JwcyXhzzZelwEsskEmGuU9INJnldkPM2CsX6kjHPs5ODvK/ujON8XUw1wccHRBSh7fy0Un0dTbZb6DwTo841+Bj7eujvCU9AY4z5AL7lIoeCmEgRh+bcdkMQyF5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5926 Content-Type: text/plain; charset="utf-8" From DT point of view, in general, drivers should be asking for a specific port number because their function is fixed in the binding. of_graph_get_next_endpoint() doesn't match to this concept. Simply replace - of_graph_get_next_endpoint(xxx, NULL); + of_graph_get_endpoint_by_regs(xxx, 0, -1); Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_of.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 5c2abc9eca9c2..5530919e0ba05 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -564,6 +564,8 @@ EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count_ep); * Gets parent DSI bus for a DSI device controlled through a bus other * than MIPI-DCS (SPI, I2C, etc.) using the Device Tree. * + * This function assumes that the device's port@0 is the DSI input. + * * Returns pointer to mipi_dsi_host if successful, -EINVAL if the * request is unsupported, -EPROBE_DEFER if the DSI host is found but * not available, or -ENODEV otherwise. @@ -576,7 +578,7 @@ struct mipi_dsi_host *drm_of_get_dsi_bus(struct device = *dev) /* * Get first endpoint child from device. */ - endpoint =3D of_graph_get_next_endpoint(dev->of_node, NULL); + endpoint =3D of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); if (!endpoint) return ERR_PTR(-ENODEV); =20 --=20 2.43.0 From nobody Wed Nov 27 00:32:21 2024 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010048.outbound.protection.outlook.com [52.101.228.48]) (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 EC7A516C850 for ; Tue, 26 Nov 2024 05:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599850; cv=fail; b=nRXmelJhvIoIavlBZYqBiaHOCdGh0v/WX4lCJQN1V0wzIOIh2AASoQwzlb8p7s2MsQ8QeKmpTNjhLb0OwdB2HSwUEk/WktfhVTMZWxp7MnpKBeBX3v5E4jPvwxCmXKiOXWbjd7jKCg6hMNVWk7t2qr75NotkRme04MNJpVhUXe8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599850; c=relaxed/simple; bh=CHMng2hNHrnMR83vYP+sCbtVb35U/TWx1TxivL9KgXA=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=TiutMDE26OoX+KMq/v2MhWOnKvvqEL+aP9GKBicBb/ZUP7CXPjqDn+J+aL6vQDfcrjimRMBkvzVIOVNyICnjGYTZPIrHmTpu51qYIIe23+vRLbLsClgQJs4GSQ7X8dtXxK9zRscquJqr3T0vmRlMziKtgJheUKgRDgiCG3hZCwY= 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=XS6Uhl9K; arc=fail smtp.client-ip=52.101.228.48 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="XS6Uhl9K" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eYP8YS/SueQjU7zXzvboiCq3XL9cMQyeGzJalQ46+YpdcclSe7ouq7fF4At61515r8oLeR162Lo1Lzyg40WpGadyUfFdHjbaIwkN2vnsrxVcCXtRc32DKOm4EiBNUg5GetreW8LC8GlJJcnRO0GUBxa6RLSK8D1RnSqx5HItfjM3jg00arhgaUNXoh8CaXXKpOd5a6ELIKU1gT0Xg4cgln3chVG3Xcp7w1bxnfOixvqYS3KVWlMx2TZGtFX9qcRJ2K/P0NTUPsSvkWvuPI7h+AWmgL98BNPsDzYChpknzGgQ1eDf3W/tBMNYEMPbL37e5FaWlY/VgsM460LH7Kggrw== 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=udl7J5wn14L6EW8DM/hP8ym9IDGix02EPivGCK5FMug=; b=LiJCdF2dyTuJsGAyOY+wI2omdbf3EYqJD0cu/94BW8HQJOtTVJf2laNkJ4d3D7qiiiRI5/Dl5voX4cniT621VjOk0eUcCtzpeuyn0MB1RZeIfWzLg6OgCs0ewQy6yj+BFxMNsRKmhgj/vKdKfE8KXc54EZWWyJGSlBOpbP67sDovkz/DeB1hWLn67XTJ6opGS9kTJKO8SX6Q8mP8xV3I7P5izKDboYM5mA+/8qt2OmBs9y6JAd2SoVFOOwNRjuPPFCTAZqHdXoQrk2huTcDqoJ8tJAuXpNdwECcjGzPFnZ8wENu+NG5GEdP1JHMf67RX55L8qyybYoVlpHBHtqUcEg== 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=udl7J5wn14L6EW8DM/hP8ym9IDGix02EPivGCK5FMug=; b=XS6Uhl9K4e6AI6ysA13Yer4UFTiwJPHMR6vbzplBsQ73MMydmERzyGrF2JzxDzuv0QffI1q5HNcKxmYLqsE2UOWD3B+2cPSad1qucpnF+72NUn8wLi4crz2Bh1grZDe9g3oaazR1gvWp+5jTSvPtmqY8PwPZeMcBj0uIblrM0Sc= 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 OS3PR01MB5926.jpnprd01.prod.outlook.com (2603:1096:604:b5::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Tue, 26 Nov 2024 05:44:06 +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.8182.019; Tue, 26 Nov 2024 05:44:06 +0000 Message-ID: <87ldx6sg61.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v7 2/3] gpu: drm: panel: replace of_graph_get_next_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Rob Herring , Laurent Pinchart , Thierry Reding , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Neil Armstrong , Jessica Zhang , Florian Fainelli , Alexey Brodkin Cc: dri-devel@lists.freedesktop.org, Broadcom internal kernel review list , linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org In-Reply-To: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> References: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2024 05:44:06 +0000 X-ClientProxiedBy: TYCP286CA0246.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:456::12) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB5926:EE_ X-MS-Office365-Filtering-Correlation-Id: 3129fc83-fd29-43c6-816c-08dd0ddd5793 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?yIv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BHLLT/hkGfhJeLgacFu?= =?us-ascii?Q?8+GCwBqsPoHrAoQbByQzv/8BaFvPVqr6FB5xD6rPA7xST+rif6PwxCtjeT55?= =?us-ascii?Q?EZkf/RNJH9N9Mof2fr3lNgdTa7eL8R+Gx59Utgf+JCp2EWOHF3A+u4Xifn3i?= =?us-ascii?Q?ss0OzKsCZOn4l/8LMp6fyJicJdg+6tqFWVcMoDPHhinlz9PMMJ2Aw94DdMAw?= =?us-ascii?Q?6RCamHkNPfQebcshFH48tYFzRPsZMZuyADjC8bl/jjJJtinFiLWWyNGEZJye?= =?us-ascii?Q?wqpFUj1XCmWE6oJoVkEHt58n+frpc9DtS4gwcSHjhM4zJA/VtNRI/JczIAtP?= =?us-ascii?Q?fJmkJU0zZuZIuVLedvLgkgKsETQpSgeuMCEzP03lNJyL28NI29e0LS1iA8nw?= =?us-ascii?Q?131x9ToBYX2I6nkLx/aj1JdpRDcY54gq3Lx9p0zy9DxK8vQds8zFTsYL1zU2?= =?us-ascii?Q?lgqGaKFiG1JfQ0fPcv6y4YnithLN596HSU+wM75mimOgK8GS5fWPQftItxMR?= =?us-ascii?Q?sewyVq0iTCo35sSJFoqh+hen9ckMYWJkJI0ul+8BkAqIsfzOy1G8RoZx7Rsw?= =?us-ascii?Q?2hRrW6iLLMI=3D?= X-Forefront-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)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?mMzCbvi7mPP45Vlp83dCHfP6U/Ez/SleyxaXkM6dvfLws+MUgrDiL8PwpSFn?= =?us-ascii?Q?MxpZuck/8P95FKumEr2ZbMNtBhYkydEar9TVkOX4rfjFgGoKkT/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z6MeLqxCdch8NoBfn+pkhHGrOK33/Z?= =?us-ascii?Q?y3CizdR0zFqgmsl1hRFbl88ns+0uaMYDZr2uKtvFWxuFqdnboW+w8DbRyBNd?= =?us-ascii?Q?cnk6fS/kx9Pup09PMbJvfDGHTmG/R0T0PeM4phn0KbnE7Sk77dWwhiOTHimG?= =?us-ascii?Q?dxzrydYbX4p8YeQEdMSZ8VGe4zJLFzNpHHXNPgEwRZYJxPjeueRIUXBIrRM8?= =?us-ascii?Q?s6rAz5hsEjKuFsLaxh4LAHEQh72yj9NgBK2nmdgnxrbiS0G+d8vHfZI3LeNm?= =?us-ascii?Q?CKEJY34IlUIUueJdt8Gucj0lMKpOWzELVA1tUNj8PG6Ica4RZPbTBHeGbCC0?= =?us-ascii?Q?a6GUcb/pe+YRZKU3AKRBmZl5+fyAtaEno00E7ZKCxzw1gMKhINd9ihQr4qId?= =?us-ascii?Q?MDMIQmROFQbVEiG6c4A7KJf0f6Zk1tFCmcz+FWW8WC+SpXng0FUbbXPk84sL?= =?us-ascii?Q?o1Mop26UwGXL5TMSJe16hPfCN0MHHWPFb92FrrEl7oda65iQ4SLVF1k8xl99?= =?us-ascii?Q?dsleOeNbS5NQuLeJY2mMROVzoMnQQPy879/76TjkFo9/SMPnPXXmyiTBsTYJ?= =?us-ascii?Q?6spk6Nk/PLqMGp09MsPh1rw/Pc0KGr6ZYD7LXZPKK+YYH1UIJP1YtMzGTiT0?= =?us-ascii?Q?vlu9UELqAaoCMUkwm5aQtJE=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3129fc83-fd29-43c6-816c-08dd0ddd5793 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 05:44:06.5809 (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: tmF1JfGw+bxZTeOgnLbp0rmNjZqD7svhSok/jDDqmMk7Cf3iNn+tR0uuigmSBRECvnyBEAhMc5C4lEhyG0hyuhZpjnOjGVFDRzK2iyYqBJiDxh2UCFQDSzPkq/UrjsWC X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5926 Content-Type: text/plain; charset="utf-8" From DT point of view, in general, drivers should be asking for a specific port number because their function is fixed in the binding. of_graph_get_next_endpoint() doesn't match to this concept. Simply replace - of_graph_get_next_endpoint(xxx, NULL); + of_graph_get_endpoint_by_regs(xxx, 0, -1); Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c b/driver= s/gpu/drm/panel/panel-raspberrypi-touchscreen.c index 4618c892cdd65..e10e469aa7a6c 100644 --- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c @@ -400,7 +400,7 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c) rpi_touchscreen_i2c_write(ts, REG_POWERON, 0); =20 /* Look up the DSI host. It needs to probe before we do. */ - endpoint =3D of_graph_get_next_endpoint(dev->of_node, NULL); + endpoint =3D of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); if (!endpoint) return -ENODEV; =20 --=20 2.43.0 From nobody Wed Nov 27 00:32:21 2024 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010048.outbound.protection.outlook.com [52.101.228.48]) (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 99370187FE0 for ; Tue, 26 Nov 2024 05:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599855; cv=fail; b=AFIHryA6E8A4F8FbOlh0l8h2+7x2tUjAJJg/LeeGViqrycOKTWVG44niWaPPQSNzClFNkR7hGiUREGaowvJ6WcgXNd+5D3IOVbiAzQBwxmM8XZo7gG0IsjjTLxSC3XRgBx2QOKr3SRPi+9NT6WNgxer9/km8PLLGy3VvyWhIHYE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599855; c=relaxed/simple; bh=yNIpmLkYPr2QfhJArKt0BOK2DT/2ljwIzt+vZPOYk3Y=; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=qMGPcW1LQN9KkBH7e7sf/scDx2JaP1jH6L9m4qra/UPvy4GF60wN2gGAjVsjrUSHEXHCmDzkorx+UUXcJ9P+/efKm8VeQIXd8mTaD4gdFfMFtxlDzKkMQ/lemB+yaqYZYPZAhT1T0mWrCKcyg+3bop9h+srwWt7zDtqqbUiJr7M= 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=dmVfWxJR; arc=fail smtp.client-ip=52.101.228.48 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="dmVfWxJR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vAgE31MaP0UOWS4wf73IwQM5o1OgDXnN1H2MCG8Uml+c9A34SQ7w577VSJ6m0vRl13EihnlhLmunWj3qzCXmJDRqf3zztD0kdTEhpTO+zvetazgzvx+dy1BMjs0znAAnyqd/8mOEcfKvw1AYdUING8exi/l7K+zPqIdzRbvIfJIZSe+0iTFLDxqOMyQUmVBnrUI2Nra0WsI3khZL2gV+I15b2/d/hy2TPJvJGLE27zmc3G3DgyewmPT/6eO+3zi6ntIbRS7RQqvd0IaHU0oRXIHYZ1kLviS3YqvbJ4pETTLn3wO52tSBDldN2qja2G1aounbbxQ2lQTjCnJOG5Towg== 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=hoHIILdYdhgVrOmGGY+QnF/mZRsWpc5tN0JFEJlLxFg=; b=xkvDBmyonHrd8HlGVdYjK3zxQmqQIkN5FGU8elr+FgKBvwA2Uy0FAKnuJm7uEbNtCiQ9LZpTIZIE+R+Lu8gOeXblr4gdchdvD1pnWzxRA59DxDTukpunSoWIVgHypwiqehmzd8CGC5MrXm662Mh7G3tXbEdeXdQc4hmW0Kd7Ua13AGsHH041i1Bmj/3rcV6CmHPe04BDJVrUex4kiJFliyij3rogN3gc7KalSecKKGDhz5K430gEnrntyGwzbqyxiPuCImSpfnEAwLKstMPVOHZAIk6PCDPtjv+yTpY4OCEReVWS/OZ4s7I940iIdNfZuf5yNHI8tg/rbxxWdcroPQ== 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=hoHIILdYdhgVrOmGGY+QnF/mZRsWpc5tN0JFEJlLxFg=; b=dmVfWxJRZYT8J5XLg5iDx36eyGr3REBl7fGLkSh3ylfHRbPjG9+GqSf0/k34ieU/B4Zds+/GfXmV3cpWeNqYnBiiE+JKF10222zcO2DHzRIJPO9xLD50umEhF4kE/60bgS/KJ7lwpqcnlHqXNvIS6Ve9nTYHhKAQ2UhwScR7SB4= 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 OS3PR01MB5926.jpnprd01.prod.outlook.com (2603:1096:604:b5::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Tue, 26 Nov 2024 05:44:11 +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.8182.019; Tue, 26 Nov 2024 05:44:11 +0000 Message-ID: <87jzcqsg5x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v7 3/3] gpu: drm: tiny: replace of_graph_get_next_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Rob Herring , Laurent Pinchart , Thierry Reding , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Neil Armstrong , Jessica Zhang , Florian Fainelli , Alexey Brodkin Cc: dri-devel@lists.freedesktop.org, Broadcom internal kernel review list , linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org In-Reply-To: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> References: <87o722sg6y.wl-kuninori.morimoto.gx@renesas.com> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2024 05:44:10 +0000 X-ClientProxiedBy: TYCP301CA0002.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:386::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB5926:EE_ X-MS-Office365-Filtering-Correlation-Id: 80ae59d6-1507-41b1-5864-08dd0ddd5a5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?chiI5/w/2l4Uk1KwW+8DFUlKyRGlQeRhdUNi8a3DWgW07AgXREcmgTaWI2gB?= =?us-ascii?Q?5MlOw0bGoVTqZPY7Hgx/O5n5/NKb7wYioMtZ++uQ2FxkmOI3GOIuQu7aE3YQ?= =?us-ascii?Q?xwrunqKnprpKMc91LUic4mXfz3PM1uLnXaiiLeABs1D2YknhoN24fqJJFJaO?= =?us-ascii?Q?378q9d34ykcXISbm80PAVOQIuJ+jg8JkDRhR9W6eWZu+uvM1c6PW6mqpQgV8?= =?us-ascii?Q?g20A+h3Aq8o5GzaNwQPJ1j7K1l9SoCj2a5XQn9Q4FPDTl7bSAmKCeekFaUOt?= =?us-ascii?Q?eiv83qhQt8X1EDLGWjRhQPVGyaKhUymDtP9xMzfiwKbPm0xO9s7tawCpp0J/?= =?us-ascii?Q?zlDeu8By+IH2/w7pj6F1bQYNQoZcsyAjCM5n+ZfQmRm4yeatX5Rz1+9CaTyG?= =?us-ascii?Q?qATOW6wtMd0MPvuqF5gpH76RmZFvu+E3Owyqs3+tx8u0ojJak5TuV7wN3mTV?= =?us-ascii?Q?j4IFK3C+G4084Zg0RI+iXCzRUB2XOTSYADXb6A0+kIn+y+rb3NCUTdYPTt/h?= =?us-ascii?Q?tn7LDFT4mqV6n0AJATG8qDaEK8wNiyNnIxag30OLPzwQEWYzyQVv0zKKBWPY?= =?us-ascii?Q?mFW7dQcxxUcWGKzIpeRN6JVyJdVVoKctU5MM8hAmIidcOtvGMLg7xw9/dR8t?= =?us-ascii?Q?xvM14OvhgMRMELEJz2fFlxT8kri2hYuyG5KTzGaG62DdCMARZYDfmsne9L+y?= =?us-ascii?Q?1+2T9+hLFh9lOrg7o+rjoh5bj3sNqv9Vaky6M5TulEK1eSIpYfm90V/cZBRq?= =?us-ascii?Q?pHB8IswjrBthQCp7lBvQXYl5CmPByWWxGzPFhAAoppG3qP8mb2ITt74Emowm?= =?us-ascii?Q?TrXP/CJxnjvQ58hS+sr0Q3zoqqn0O3gPHpbf1QOC3U4NrcwxOFq2CxGfd7Er?= =?us-ascii?Q?J7eEW3z1T8KN8Hc0OFrH5/00xfnvHC/cJXCaK3K75lS5aTY4oJmknZha6Th0?= =?us-ascii?Q?AMtvMNNijPFqORRpsfJc8blYjzDPiN1leuLjgyMFYTOncNShWJCaZUwy4HF0?= =?us-ascii?Q?OQU61HdOjfHYBS9C6SGNJsbS/wpu743rRxFgbmVli2MeBBLWgENVHs+2EF97?= =?us-ascii?Q?P6DqhQJnd2IffMocrNR+sM7T5uD27/38s73JcGzbXTj5bcFTocXXDJV/19FX?= =?us-ascii?Q?neDZTkijoVVCFS2kcFmisolM27d8XKc35EbhX68wylu9bjqp/r6UAZyw0/wn?= =?us-ascii?Q?59rwmkbuW4eNaAuOhKd49p64AmLK0yryGNei2TqDrcUu6Yd4xELfamoOIJvd?= =?us-ascii?Q?XYVAf172FF3As1LdL+g8HN3suABhokkxkjJUGTpO/7Kwla1z6dMz8dmO5iH4?= =?us-ascii?Q?DsSFk8CBDcJOHBX6tRSg10ynYikg/j1ARrcnLMNnCz7htU2M4ff3/FCAB28I?= =?us-ascii?Q?4d7V9Hp2DsFvsCo7Hlm5T0jBM9sn5JnpW9+OdQz18vL1+PUym81i3xwipFk4?= =?us-ascii?Q?NAheWjq/AiA=3D?= X-Forefront-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)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xHxja6nzfR5U68UfrV6ICvNhFWPZKKZJY+vG51sIQpa0FZzFbuy379JnJOva?= =?us-ascii?Q?yScTXrDSkOkJWnerY6g33C1hUXAxJm8rmEeGbe/3YyD1BNrwVkAxKPCrF0FM?= =?us-ascii?Q?xokcu0ZO77p68jLkQwpanAHzNIaIOiublbdcsWPdsTvuPgFRtoXgwK64OY2g?= =?us-ascii?Q?3HKyuuAYV6eW5heL74ztsmTAZwOkR8RdmXsFH1U/d6zdA8Wo6MtAEyBTPQVM?= =?us-ascii?Q?laMzZBEBcCoSyna9B6BpGN32A0nanfD/Ge7BznYyol8J0mvpfAMVVyqPn3/q?= =?us-ascii?Q?JuUD2nw3KuBBFmEGxHMbTB8LpDcrVi5fPVAQbVzE+KfyjYwh4SJ9DSB+oGAT?= =?us-ascii?Q?p59rCNDxTrjUUQ7WyWdZHbZg40A1ZbLshFE+QzZluQKKQe201pXnIt8jLRpE?= =?us-ascii?Q?X7j2T5WTehia+H2ez0tsK2mVI1UBRHQCnq4kQ7Sl2hIBtIsii4TTr9Jm8l26?= =?us-ascii?Q?c87n1/i6jpX5ZPQNjrN1EBMPcfBBs3jIvXf/DlxMlPmiI+qO3zvlIZ82boaT?= =?us-ascii?Q?SoGV4fsAtpO5NWtHVvhqFeYQg+d0mfaTYv7zIiPcXYg/smta/OW70cMN3UR6?= =?us-ascii?Q?T5f3vRHsODYipo4CwUhmjcoDOxUUmZ0ihXTOfgqiuNtd0Sfgq48dpRMUEGZc?= =?us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c23sTMbCRWzJ?= =?us-ascii?Q?vgQ/7SKWGo3OdstAQxPGAXN00Bxo7253zQd/1Typw6y7tZRz1D2D69nHAREu?= =?us-ascii?Q?GMAfTkHyf9WEs+BB2PvHjMo=3D?= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80ae59d6-1507-41b1-5864-08dd0ddd5a5b X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 05:44:11.2286 (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: nfCsvzubk35NFUWJl9ko97vJytXpnOoQ4EY/T+LsBrwM6g9Z+cw51IToNoyZ+0zWCHe5v66+wmb8nRmYqkKh2x9HQ5lVuJfcf2H+sOUe7Ycsbx0CuPm+nSKMPJiZVCqh X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5926 Content-Type: text/plain; charset="utf-8" From DT point of view, in general, drivers should be asking for a specific port number because their function is fixed in the binding. of_graph_get_next_endpoint() doesn't match to this concept. Simply replace - of_graph_get_next_endpoint(xxx, NULL); + of_graph_get_endpoint_by_regs(xxx, 0, -1); Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/tiny/arcpgu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c index 81abedec435db..b2dc02df74f89 100644 --- a/drivers/gpu/drm/tiny/arcpgu.c +++ b/drivers/gpu/drm/tiny/arcpgu.c @@ -289,7 +289,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpg= u) * There is only one output port inside each device. It is linked with * encoder endpoint. */ - endpoint_node =3D of_graph_get_next_endpoint(pdev->dev.of_node, NULL); + endpoint_node =3D of_graph_get_endpoint_by_regs(pdev->dev.of_node, 0, -1); if (endpoint_node) { encoder_node =3D of_graph_get_remote_port_parent(endpoint_node); of_node_put(endpoint_node); --=20 2.43.0