From nobody Wed Nov 27 02: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?yIvjeOtudKGWPLYTVJgiM68kk3HiN/Ng6mKTPmHsrRYh+SPVkhxWgveY/+mG?= =?us-ascii?Q?Nhi/z0KdPPR1qaqd89+Ky/I2EjIbwNYxZkpwFlMfKKckhMDppqjbowfWG+As?= =?us-ascii?Q?lV25vhi2CBlPowMCM8WpOlHubh8iOSCr01FHOHGCZLRe349yjm71g4+q1p4y?= =?us-ascii?Q?Lv5sAYOV9kgHhFGtOMOuSsTpLRnla1N9ngtV6xGlVla7c4jHPMCZw/5lrjoQ?= =?us-ascii?Q?5AXkBXXAUeC+veX0PxmlVU49FsmF75yQnbQMKZ3j0cDid6PP/sze4kYLZYpt?= =?us-ascii?Q?MSFoguT0fFfGI5Asfva7SUCh34TKe+JlyR0y0qV5qj+pA8JivSmm/9R3mfh4?= =?us-ascii?Q?YV5uOTI0qheMs6FC060zbo0ecsOi5eZ4gr3/tabIVYbB9CnNoIQ8W1v1ATLt?= =?us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3Lx9p0zy9DxK8vQds8zFTsYL1zU2?= =?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/SKB6RozrM?= =?us-ascii?Q?xg9j1OeNDJaxvNy//wj1Mk2vqFyNUjE3GFYSejclB6LadbRAxTBY83EGO/Q7?= =?us-ascii?Q?ed4CIrMZgU2+ByyeSDjoUSVxelHRiY/6eSQjiPEikRaewhL3vPdgp3e7qYWs?= =?us-ascii?Q?csVfdpi/PAhG7coOxW/cCWcI1tFCaODHBbS2twjTrw/RufyB3SVMTVfk1PDh?= =?us-ascii?Q?RDrWUyFU4OXO/AU20eVOyYg3gjpigVnBPFAdObN6QiiYvRhrHuhecVHtVNBW?= =?us-ascii?Q?BiTgT1nSfh5JBl9FwQAdMdDXTDU7XrkIV8fWxpqm+xxtCIK59f3C4wAAUsLK?= =?us-ascii?Q?S9HpYzJ8YTROmIdyvdq5sqKqF6E/t42YCFbdsOwHry2/PlmnEJ19ymymSReL?= =?us-ascii?Q?GPa8ixEXdtoD+4MidG1SQJvujJ7LKm7aZ5kvvVU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iG6c4A7KJf0f6Zk1tFCmcz+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