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/sBy6myIve3ARO2I96jIM2af2TFKlR2wmLOvvOAUKApI5jODNHkn002oPZ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AT: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;