From patchwork Tue Nov 26 05:44:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13885483 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 A1773D5A6E2 for ; Tue, 26 Nov 2024 05:46:02 +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-Transfer-Encoding:Content-Type:References:In-Reply-To:Cc:To:Subject: From:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CZdFGTdJN3ehcbxazPVepBkaAaWOXkTkIwh11C2cDNc=; b=dg+O8PV+0JlDLkSd/gyxf5cHmD WfmWBM5K0lPoK+kIm7t8V5OpvE1bKpk0ekeSoJO3JQVuZvHiI3eI+Ysc5ir0bHwDeahu9r/Qz6pHr AanwCghbx+be+KKMN379f7FNqp7PlnLOx6w1fwXbWGygHOyxBjbWXAwzxpM5wLT17r9IaA6GmukIw FDmgNBAeY9Kx0tjyGXDs+txv3JX5xaIa3k1Hlyw7N9jklNBw66NdeHK4s41qDjWpB/jbQPapjh6ib /rHyEfpzkDJDFtzZRmktrrhNjmCikiO7LBTVd38U70QCA1jjLar3ydsiH+88NP9Oga6iKhOiJNHHv Tzzgcx3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFoOS-00000009hCN-21GK; Tue, 26 Nov 2024 05:45:48 +0000 Received: from mail-japaneastazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c405::1] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFoMp-00000009gup-1BiH; Tue, 26 Nov 2024 05:44:08 +0000 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> 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) 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: mMiBT6h8nwT3aQnbCoM/a0+N9vnBmMHpgLlxoRHKG7aWx0vjZaAn4fpGxjE9iMstxoq3ybeZ0DyOfwaZf5XP7EvHRsR3epAgBp7Gg4tiGGe9g0nZU5gRbxVd1zHCzNac89AQj/VutwK0ddkh+TeXt+tCteelwlNZwqQqOzzNT05aa+2OvLwqcerrI7lEs//YEDTpCwiB2XIMjk+Mh1zl6icylQha7957IWlnl8sxUFS8dT+frr+WiS750T26xUIlQOJWVIPxLjOLUfrSWsycuLLb4R93FXc6P15bHM0KXWGETbeHwuG6XJZWoQ3YpT0bcCRcHLucVjG7o/6W2Hy4Dk+S3rhIHPJwosz0AAO5Udk1+2ZWF5JhXckzykNUxDsY5cGyYXbXIFbMD8kuEzBbvpeBN5T/dynffH+ktDKZ4/MNARuj9n7p/z7vLYvLpEUG0sgdxs+2bw1+pnsJBNGxu1sRV1FoYYzPqrWEChrNHM9Dqi9ZhBLAtuRxD/41zPTELAtHTcEsaZiej7en/ccpu4o08vCzqt7b/TWrX5LB3yTK6tW39X6zYw7OMVV9G1Z1uZN3Qg90S4bh216hKqOsiio+hCaH/fWeRiEfDnpa1f1kiEdkputjzcg8nmgZRD6o/qYn0W6+yZAfOahOGpHUEUI/5bJ7PF045CdmoYBYKpGnC3TgWGgVz6/x154SX8eb/pepR++9nxmvU6XGJJ2LAvDZS3BqtwNoO7pX2qmh527aDuac5/zoTVIaVucGMTUAsJ1a2sQKeJeYiLHNQRp/Z2nL36Um1pZWSYzsDK9X1ib6biEiKWGrfmOEmBWAfHLZfceAp069OVD1Ovnb2nNoywoV71hDpvUP55v3cwCEu540SeeELKq8BbxP58/MjncpKVNGobq91swqANRk/rYKBQYozoRa6mTvxRDlaApMPbdBz0vfraDA6Vu73ALtuNu84EcOSgCOgEz+9WsKLfqvOAKsDzumqHZ+8ddJnTItd5lcQdj/QkOXlUrQYewBh+8/gYo0iHrAgTyCJ4LwGvK1Tlo8y6Z0PHC+H0hmNpp2eGkYwmZ9ycvXDc5krkwdLJ1nIz/W4bY5Iu7GpzRVGCQjpf7wu4+CDKAINA4+Gej8X9Zr18wEc+7kd23IOOCthJoxG45asni78cgmXzPluQmlvKCx2b/l2ZHfUxTZS0EKbWVY5KDrnxVrztynolUe5pqwsBXGzsB554m2+1lBkkleXMWxpRT1UcisOwSqQMyqN4gNnk+cS7UPf9amVUe7pTUdPaoEB6Q46pX3zE823nuv/j9afq/wloYllT4OOEnlPW9J/z6C3b41Z8AZm1XvVlwiA1Oms9zHDjj6teilQakvc5H9oH7j8L5qXKXtYShD6/tdWZnDM/yeLrgF82oQOUy+xtx2oPO0N1Vs00o0pxOmwvOU/ZaF7VZtRwDZTPRStFc= 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: TGsRtvZpyEsQe/X56BaGS9pYet6aHgeWyBjEav1O4DRcP0vOXS23OSPK5NM5i859VpqHYOCXFxdY7heqCZ8tfJVsKVSM37ff37eA+WydVpIwXXzQsTpLGxxGhpYgfM3WCo/fznoxwGB2Ynnik3YpXKKvUcHX172OAnd8hUkahxrZYDhmaFEovgA80qmBHk0nYJ527a1TEERJUahpWWph+wOd3V6UosUS41b++47G33/yVRNa81x1yde4YTGkesTziJVERTBraOKGzrjQvALZAj7lO0yRs3BJoMcnFl+n7mArwEbsx9+/eHe0MJFvVJrMv/E3SXP1w6+rcDJKPuD0NkguvWlA11NDjVTfgVERdUUEeMp5fvNRW3kvxWRAoUxvewp+v+/e54ms2zHJyjj4Z8bfKLlHN0gvLZ13RNRIks3JklcLMNt7Zq4yQoZ3j7oLt4vx9tSM3stWermoA/JpdfGg/NUk+V8f5TW3+g9o1pEb2qCbCZIw0A7UeKQ1NwP1pVa/mmzOxAFojWT6B03Pq0iUin2QXu/WE1nkCPiZm3LtfEQlKrXKVxIdM6hfrh49he2HzaqoCT1tDUg+9RGATZGifkv2m+PPWpgIDMvycOW56ILpUrJtpBs19tQp7oH9nVlHJi1tcW066fXPyqt5RUMQcNhwCuDUxH7hkk7mANuGRJfHl0vy9VPPH64iOXrrCwCEn6KsmAcreP8EC5mNfvQwJXzgpXezZIJIagzPHN9TLMlIz5Z65Sr8N1w0pXu44N/naOkoBMw68c4ryJoTdvwknueNPlgUHisHH8o+gsXd6My4Y0vgBGOmHeMcpIbIz5FKDT9Ph8lCzkM/wZwh0fX2LqfRtDLs2EZkoAwppkBFjYiqbFGmd+z56MbhcMoP7jbMFwRnZ5kp1quk0GeZ/DwPBdFSIccE/xtc+ATTx4TtDti479QTNj4QrIeJW0lpVz9w7VI9gw2hJ8apymThw1Z64X0/dwkklVEWi+Ehy6dWAh6R1a6XJivAaRJcIIQaFBIUpsNwwMFUn443kAcHMMHlhLahJU+k8lneagd6YH8w+TGXZrgyXSDvBuEpLHtJhG7es8TWevbq2pbTrs5G/d7he40u4nJzZSVy2qXbfQzYQbTwbGxxSTRhZyoX582Jao7O67kj3AgV1+egtQjgzCGfHZVMHuyjghie4NubPTnFXdge5bRX6SnAbuhp036LfX8iS/EzE4nJqUbzJybkjO73Ra8fGJzCEiVUPwIgl8UO48Snnkhqt5NJqlocl7ZoEC65ENevOCLm1VPL9yHS/12otr3s4XVTLkH4WkBfc2K4Gh3IqjwTYueZuK6fOQe9/f7029/3UqBp7mXX9QD6MgxUwjAbBYINC8xWrdtWJA44it3Y+wrJTt+a8o74StS08LZUtVD1Kf63VKSbDNRIcKdRnLq8L4nkkcpTGvyKiRqtoU4uodPeYXUJ/A8X51Nu+0FbagWXUemL1RB/fhHVwNLYTbQAqO9cbd7KbcSK3GHfOarFp1G0f+w3BeAaf81b/rCsenAGK7ejAr6oNr+aLV2h+v0H4kSnaazBXq5TBQ754H1Uaa/1EJ1uBOTdQDKaHr5aPUpFRINt7mx9B3ICrWud6ZP67oZ3u6fg0aFk3wE= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_214407_314904_53D97E7C X-CRM114-Status: GOOD ( 13.41 ) 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 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 = of_graph_get_next_endpoint(dev->of_node, NULL); + endpoint = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); if (!endpoint) return ERR_PTR(-ENODEV); From patchwork Tue Nov 26 05:44:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13885484 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 0581BD5A6E2 for ; Tue, 26 Nov 2024 05:46:57 +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-Transfer-Encoding:Content-Type:References:In-Reply-To:Cc:To:Subject: From:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=udl7J5wn14L6EW8DM/hP8ym9IDGix02EPivGCK5FMug=; b=sALy+Jx54Wa6SryiebFMcflcHO 8Bde0wzcsJ87sjzIuiXtup0vfAWg6qDypz8cVWLZjXk5fgBNRuSlmF6xXrkwlbeEfBR04FUkflqSs syXdFEEGuzceNfjVuSOcClty5if49aT86NZfw4muRlKXI6CaPMtf31+ze3+eCL8B82hU6Q+NHzBra sJsJ3hqhuNobvMG8sWguuYVVUST8A286Qyq7uwa+Giy7tzwBKQJaWUU3gQRUFz+Ptqzyyo4TCzOMm uVjhkUklQX3bHwua50pr/bWcWdq/uOZ2IPFqNyjAs2OFKXiPFAxwA82ud/Y++UQIdrBx8rzNOADOc XW4RKeMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFoPO-00000009hMD-2eFy; Tue, 26 Nov 2024 05:46:46 +0000 Received: from mail-japaneastazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c405::1] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFoMq-00000009gup-2m7s; Tue, 26 Nov 2024 05:44:09 +0000 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> 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) 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: yIvjeOtudKGWPLYTVJgiM68kk3HiN/Ng6mKTPmHsrRYh+SPVkhxWgveY/+mGNhi/z0KdPPR1qaqd89+Ky/I2EjIbwNYxZkpwFlMfKKckhMDppqjbowfWG+AslV25vhi2CBlPowMCM8WpOlHubh8iOSCr01FHOHGCZLRe349yjm71g4+q1p4yLv5sAYOV9kgHhFGtOMOuSsTpLRnla1N9ngtV6xGlVla7c4jHPMCZw/5lrjoQ5AXkBXXAUeC+veX0PxmlVU49FsmF75yQnbQMKZ3j0cDid6PP/sze4kYLZYptMSFoguT0fFfGI5Asfva7SUCh34TKe+JlyR0y0qV5qj+pA8JivSmm/9R3mfh4YV5uOTI0qheMs6FC060zbo0ecsOi5eZ4gr3/tabIVYbB9CnNoIQ8W1v1ATLtIkDbBexAPncC/sBy6myIve3ARO2I96jIM2af2TFKlR2wmLOvvOAUKApI5jODNHkn002oPZV5sCdgzqz9uO3CpkOtSMCgFsjtW81iawzo/bZVE6SXWXBZ6ywB/Eka2hU1Adb8GEm1hzwMJ/5SOoWoRL+I1mlot9OHcBuY5h4+yWvXUlT7GkLMdSm3D4DHkjW5Z7FYhKeuSxiilrN7dSEbqnyTdXzWAVq+Yqp1Zh/FePuB4ZSN1ZS4cwRtJzevu1E6a/tZGZmGkBFyGk44ASHl62fYOydw5SY+no4ozoBVvjqrJdF7dZFBcrbgRu0u/WEf3xTDs1bYxRFwazNDV/zgCUUoFruFeLBRi6IvA8bZR0WEmiCKCZ6Ovo9rMK9a0Qh0JK2du61pVS73kpXaPLC/CDg0uaBzZFbEoVsz4iUq9VPHzHzcCBNwpJCJ48sNYG+nSUyi1nHBDTowGBHLLT/hkGfhJeLgacFu8+GCwBqsPoHrAoQbByQzv/8BaFvPVqr6FB5xD6rPA7xST+rif6PwxCtjeT55EZkf/RNJH9N9Mof2fr3lNgdTa7eL8R+Gx59Utgf+JCp2EWOHF3A+u4Xifn3iss0OzKsCZOn4l/8LMp6fyJicJdg+6tqFWVcMoDPHhinlz9PMMJ2Aw94DdMAw6RCamHkNPfQebcshFH48tYFzRPsZMZuyADjC8bl/jjJJtinFiLWWyNGEZJyewqpFUj1XCmWE6oJoVkEHt58n+frpc9DtS4gwcSHjhM4zJA/VtNRI/JczIAtPfJmkJU0zZuZIuVLedvLgkgKsETQpSgeuMCEzP03lNJyL28NI29e0LS1iA8nw131x9ToBYX2I6nkLx/aj1JdpRDcY54gq3Lx9p0zy9DxK8vQds8zFTsYL1zU2lgqGaKFiG1JfQ0fPcv6y4YnithLN596HSU+wM75mimOgK8GS5fWPQftItxMRsewyVq0iTCo35sSJFoqh+hen9ckMYWJkJI0ul+8BkAqIsfzOy1G8RoZx7Rsw2hRrW6iLLMI= 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: mMzCbvi7mPP45Vlp83dCHfP6U/Ez/SleyxaXkM6dvfLws+MUgrDiL8PwpSFnMxpZuck/8P95FKumEr2ZbMNtBhYkydEar9TVkOX4rfjFgGoKkT/SKB6RozrMxg9j1OeNDJaxvNy//wj1Mk2vqFyNUjE3GFYSejclB6LadbRAxTBY83EGO/Q7ed4CIrMZgU2+ByyeSDjoUSVxelHRiY/6eSQjiPEikRaewhL3vPdgp3e7qYWscsVfdpi/PAhG7coOxW/cCWcI1tFCaODHBbS2twjTrw/RufyB3SVMTVfk1PDhRDrWUyFU4OXO/AU20eVOyYg3gjpigVnBPFAdObN6QiiYvRhrHuhecVHtVNBWBiTgT1nSfh5JBl9FwQAdMdDXTDU7XrkIV8fWxpqm+xxtCIK59f3C4wAAUsLKS9HpYzJ8YTROmIdyvdq5sqKqF6E/t42YCFbdsOwHry2/PlmnEJ19ymymSReLGPa8ixEXdtoD+4MidG1SQJvujJ7LKm7aZ5kvvVUIRUsz85ov+vRlLByqxdFAE1a4cPVb3CD548VonE1hZgeJElEZcvVsQZelTjHbTkKARBkOEzLBp6Zo3x0/MDgenABEIsz+CG0dZB/pGHRq6/394FeH5op5JhOWY0IkA1PHcmN0B6I/aWiu/ukOICBM4oD4WkEiQV5gpCNH+cPWdjgcbiZZEX82gDpA7VxI8jc8vTPa1fUawSEyFxI5rNK7oS3k9YtWbVbmhq4YWx+obzLi89vGRkrg8Dc9HHQJKao/VYRKjlB9+Eu7GZevHpjrUau0MMNjZbRNqMYuRXEwcpwvKbXbzxR+dQsPWSV2sQ0guOPd1HBPdfrod8P2hVhw7ENOAc4t/fcJCXohEbipEKUjXG29ETKsQLNlLqGMlXO+qMvWW4QzIp+qDJqNrNw182S7gf7WmUdoRPlHTWppcjPlatTsLbLFhehvcqedDZgjbqfmINjM721vnYPo9cLVfaz6MeLqxCdch8NoBfn+pkhHGrOK33/Zy3CizdR0zFqgmsl1hRFbl88ns+0uaMYDZr2uKtvFWxuFqdnboW+w8DbRyBNdcnk6fS/kx9Pup09PMbJvfDGHTmG/R0T0PeM4phn0KbnE7Sk77dWwhiOTHimGdxzrydYbX4p8YeQEdMSZ8VGe4zJLFzNpHHXNPgEwRZYJxPjeueRIUXBIrRM8s6rAz5hsEjKuFsLaxh4LAHEQh72yj9NgBK2nmdgnxrbiS0G+d8vHfZI3LeNmCKEJY34IlUIUueJdt8Gucj0lMKpOWzELVA1tUNj8PG6Ica4RZPbTBHeGbCC0a6GUcb/pe+YRZKU3AKRBmZl5+fyAtaEno00E7ZKCxzw1gMKhINd9ihQr4qIdMDMIQmROFQbVEiG6c4A7KJf0f6Zk1tFCmcz+FWW8WC+SpXng0FUbbXPk84sLo1Mop26UwGXL5TMSJe16hPfCN0MHHWPFb92FrrEl7oda65iQ4SLVF1k8xl99dsleOeNbS5NQuLeJY2mMROVzoMnQQPy879/76TjkFo9/SMPnPXXmyiTBsTYJ6spk6Nk/PLqMGp09MsPh1rw/Pc0KGr6ZYD7LXZPKK+YYH1UIJP1YtMzGTiT0vlu9UELqAaoCMUkwm5aQtJE= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_214408_698781_7E08D115 X-CRM114-Status: GOOD ( 12.17 ) 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 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/drivers/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); /* Look up the DSI host. It needs to probe before we do. */ - endpoint = of_graph_get_next_endpoint(dev->of_node, NULL); + endpoint = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); if (!endpoint) return -ENODEV; From patchwork Tue Nov 26 05:44:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13885485 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 5B7CED5A6E2 for ; Tue, 26 Nov 2024 05:47:57 +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-Transfer-Encoding:Content-Type:References:In-Reply-To:Cc:To:Subject: From:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hoHIILdYdhgVrOmGGY+QnF/mZRsWpc5tN0JFEJlLxFg=; b=DN1vl9RgK1O4nmveF6ScEXkkKN 5lWg5ZdvjD9dFs0nWa1nAHL9/PUKfLOU8GJt0TuDby+7SUQtegnhniF9dtISPCfmV7BGC9RLNrD2K xKWuTeXos6lznkShAhsUlOy46DrxLNNqNmVPhoyvWgpGKFKiyCMwyfjy4mi82DFtrCCcYAyLQ8IRz 58GH67l6uGNilk17wyQTy8ZkyI+eHHboojLfpZI5tL21l/tQ/i07qiaW5xL50+vZsm6n0hvTr9eIu k45whr8MPODa3k10Nd4fb8bJAKcO+kp+8+GdZCCD52M7fpflkBLbEJiL/uNy3S9RHbLLDHxH0xOK8 l8GEW0yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFoQM-00000009hT7-39vI; Tue, 26 Nov 2024 05:47:46 +0000 Received: from mail-japanwestazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c407::1] helo=OS0P286CU010.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFoMx-00000009gx5-3CHn; Tue, 26 Nov 2024 05:44:17 +0000 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> 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) 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: chiI5/w/2l4Uk1KwW+8DFUlKyRGlQeRhdUNi8a3DWgW07AgXREcmgTaWI2gB5MlOw0bGoVTqZPY7Hgx/O5n5/NKb7wYioMtZ++uQ2FxkmOI3GOIuQu7aE3YQxwrunqKnprpKMc91LUic4mXfz3PM1uLnXaiiLeABs1D2YknhoN24fqJJFJaO378q9d34ykcXISbm80PAVOQIuJ+jg8JkDRhR9W6eWZu+uvM1c6PW6mqpQgV8g20A+h3Aq8o5GzaNwQPJ1j7K1l9SoCj2a5XQn9Q4FPDTl7bSAmKCeekFaUOteiv83qhQt8X1EDLGWjRhQPVGyaKhUymDtP9xMzfiwKbPm0xO9s7tawCpp0J/zlDeu8By+IH2/w7pj6F1bQYNQoZcsyAjCM5n+ZfQmRm4yeatX5Rz1+9CaTyGqATOW6wtMd0MPvuqF5gpH76RmZFvu+E3Owyqs3+tx8u0ojJak5TuV7wN3mTVj4IFK3C+G4084Zg0RI+iXCzRUB2XOTSYADXb6A0+kIn+y+rb3NCUTdYPTt/htn7LDFT4mqV6n0AJATG8qDaEK8wNiyNnIxag30OLPzwQEWYzyQVv0zKKBWPYmFW7dQcxxUcWGKzIpeRN6JVyJdVVoKctU5MM8hAmIidcOtvGMLg7xw9/dR8txvM14OvhgMRMELEJz2fFlxT8kri2hYuyG5KTzGaG62DdCMARZYDfmsne9L+y1+2T9+hLFh9lOrg7o+rjoh5bj3sNqv9Vaky6M5TulEK1eSIpYfm90V/cZBRqpHB8IswjrBthQCp7lBvQXYl5CmPByWWxGzPFhAAoppG3qP8mb2ITt74EmowmTrXP/CJxnjvQ58hS+sr0Q3zoqqn0O3gPHpbf1QOC3U4NrcwxOFq2CxGfd7ErJ7eEW3z1T8KN8Hc0OFrH5/00xfnvHC/cJXCaK3K75lS5aTY4oJmknZha6Th0AMtvMNNijPFqORRpsfJc8blYjzDPiN1leuLjgyMFYTOncNShWJCaZUwy4HF0OQU61HdOjfHYBS9C6SGNJsbS/wpu743rRxFgbmVli2MeBBLWgENVHs+2EF97P6DqhQJnd2IffMocrNR+sM7T5uD27/38s73JcGzbXTj5bcFTocXXDJV/19FXneDZTkijoVVCFS2kcFmisolM27d8XKc35EbhX68wylu9bjqp/r6UAZyw0/wn59rwmkbuW4eNaAuOhKd49p64AmLK0yryGNei2TqDrcUu6Yd4xELfamoOIJvdXYVAf172FF3As1LdL+g8HN3suABhokkxkjJUGTpO/7Kwla1z6dMz8dmO5iH4DsSFk8CBDcJOHBX6tRSg10ynYikg/j1ARrcnLMNnCz7htU2M4ff3/FCAB28I4d7V9Hp2DsFvsCo7Hlm5T0jBM9sn5JnpW9+OdQz18vL1+PUym81i3xwipFk4NAheWjq/AiA= 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: xHxja6nzfR5U68UfrV6ICvNhFWPZKKZJY+vG51sIQpa0FZzFbuy379JnJOvayScTXrDSkOkJWnerY6g33C1hUXAxJm8rmEeGbe/3YyD1BNrwVkAxKPCrF0FMxokcu0ZO77p68jLkQwpanAHzNIaIOiublbdcsWPdsTvuPgFRtoXgwK64OY2g3HKyuuAYV6eW5heL74ztsmTAZwOkR8RdmXsFH1U/d6zdA8Wo6MtAEyBTPQVMlaMzZBEBcCoSyna9B6BpGN32A0nanfD/Ge7BznYyol8J0mvpfAMVVyqPn3/qJuUD2nw3KuBBFmEGxHMbTB8LpDcrVi5fPVAQbVzE+KfyjYwh4SJ9DSB+oGATp59rCNDxTrjUUQ7WyWdZHbZg40A1ZbLshFE+QzZluQKKQe201pXnIt8jLRpEX7j2T5WTehia+H2ez0tsK2mVI1UBRHQCnq4kQ7Sl2hIBtIsii4TTr9Jm8l26c87n1/i6jpX5ZPQNjrN1EBMPcfBBs3jIvXf/DlxMlPmiI+qO3zvlIZ82boaTSoGV4fsAtpO5NWtHVvhqFeYQg+d0mfaTYv7zIiPcXYg/smta/OW70cMN3UR6T5f3vRHsODYipo4CwUhmjcoDOxUUmZ0ihXTOfgqiuNtd0Sfgq48dpRMUEGZcbrU8B1JPKteWaz3IwPYbq15+tLUaPQu0LAQogoitTWD1lqd0NPFkNHtICVBRudpbLbsbT+WijAuOm7OpkO/Y2gYybhv7W31aM4p/pAtqlKeOwaKRNkgBbx8LtGZ2tVttMvEsdVFfFQOi6rlIVRGQ0UEzTU7fo0vZW0es19ocN++dk0IX0xiuSm5kN1eK1+FDL5CYWP/Q2HQH0tskdxd1MbXaAkCso9q2fVU+RsW00jZlcCJxMlNJBhHuIxruo0YwtxwFFuKgCilcc/yb7jCrS0GXeRnfUFBl3Ty0CoHqOeFG/micRkrefGs8yvPi+0ANPbf6U99wEWDcLJxSataMsf0dBsHlyAyHG/pQQPldL5JFKZdKhcTDM0dinOVb+22oVN0Df7hk0EZk4/h8afbslYxY50NzmBVaGfRswgjEyikvD5dnEV9oDHEmchJX2brDnnufkdUKIb4SddlTbClGLuBGoJuP7Oy/IGiqj5CJxhQ7DFqEH6LarloGIGswkjToO6Lzeo81qCbTp4BaXXUAx1PsGv9VbxW/kA8cuP+056aUWij6oZlrNCUYSuny54xlV0i5+C0vUx2t0CXJfyJC1IXGWgJooKLNBMUSJbl8h6KqWUUduB78o1C6ONo21q7fqRJmstKotHDb/H2xtkw4vD1s6o6cD+xS3DTvUqDrEoCOkXvN3DG/9vvNCoy+MRn9ocoOwYkSwn0RfPhPWD7pnvy/hj2SRVD2gJxozDS30C4CZDFGvV27cktl3+9K9WLgVzIO7QZNGnH/aEcBIC7vI7AzZZENzayGe4t8Yihw3HpBDXjwjNMM+gq63qqLOnI67ZmS7my/aD1WU3Ti1/zNUYtMhDoTIP4S5S296fOinCV2oWKYjkM9b1A8c23sTMbCRWzJvgQ/7SKWGo3OdstAQxPGAXN00Bxo7253zQd/1Typw6y7tZRz1D2D69nHAREuGMAfTkHyf9WEs+BB2PvHjMo= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_214415_802366_5C65A423 X-CRM114-Status: GOOD ( 12.06 ) 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 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 *arcpgu) * There is only one output port inside each device. It is linked with * encoder endpoint. */ - endpoint_node = of_graph_get_next_endpoint(pdev->dev.of_node, NULL); + endpoint_node = of_graph_get_endpoint_by_regs(pdev->dev.of_node, 0, -1); if (endpoint_node) { encoder_node = of_graph_get_remote_port_parent(endpoint_node); of_node_put(endpoint_node);