From patchwork Mon Mar 25 02:56:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13601090 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 79AB7C47DD9 for ; Mon, 25 Mar 2024 02:56:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D31210E4C6; Mon, 25 Mar 2024 02:56:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="ORA+ij9z"; dkim-atps=neutral Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011008.outbound.protection.outlook.com [52.101.228.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4809510E4C6 for ; Mon, 25 Mar 2024 02:56:39 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lObyjO+ebnYUFRH6vAwM3TTMRG3POL45XtAaaRFNA+16+u6YpuDT6gCBKgZG8qO18OvxLipObdGcxrucx2Bm76XDIswltRbIreRSb//uW8sQFQqK61y4iiKOcXdB5+f13KmRm3TR386wzBAHYSwTCVyzBF/jlh4i36R3kTvFxQ6lrBBj/NQDjiyJAfzrPgf0wcEHarFO1yHheyW9yu1Jcq4UaxFhlD3iRP78+dJyh/leOS8J/yLf2d61W/osyBXLypTp70i1V0cmqNrQSQvEnYEBknNYQncin/8ipMTVOYFyuPTCAsM//nHA/etBJtcuTmjceTRM5y6NFEKgWS9edw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=fV5QCGo/232GQdRXFLBDTHJ6LKOdjP3Qf/6uOtwDCZA=; b=BBIBcYYWSz374mHYt78UYuol9Vgh2PIwVg2kZTobjf2aLItkZLT+cBrYr/SGDvrz+8p1GzB2s0JAcZSkPlibfZZxyjWVDKRLn4LkSn8LYupgm3m6jjA6W80a1/4oSnlhzrIq5lUPSe2qBStehPp2qdCKqY8qEGBsUIyZwzneaFR/shD9EunmMQAqXMUrM3IuIz/OR1SaDdGVXD1S9YEkl629tV+YBK2PFEYfYA292C9tXe8EstzAYLZ0sZ6dsmH1jSl/Rk+Ko1pmMo3OEoAmFk0m5WB7qi1CvpleWi+XvtTr2N2PhOqv2gGzFgng/XNNPqVXANmPSp5/BLXhHM62dA== 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=fV5QCGo/232GQdRXFLBDTHJ6LKOdjP3Qf/6uOtwDCZA=; b=ORA+ij9z70pHMQAy+H4QhuKjjB3ed21D6+Sl+8LO3wOcfSraw34ESzJee1zoEj1m0hR9muDxo5jQCiLMzUwnyXlJOl/VQwvLVdJKp1E7j2DKOCM84TipbIFBgHrA6hjEXPh6M+6F6kan0k9kqCafWdHrdxBeOPvJfAH4fmGHxGI= 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 OSZPR01MB6831.jpnprd01.prod.outlook.com (2603:1096:604:13d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 02:56:36 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 25 Mar 2024 02:56:36 +0000 Message-ID: <877chr6mu5.wl-kuninori.morimoto.gx@renesas.com> To: =?iso-8859-1?q?=22Uwe_Kleine-K=F6nig=22?= , Alexey Brodkin , Daniel Vetter , David Airlie , Florian Fainelli , Helge Deller , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Rob Herring , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-rpi-kernel@lists.infradead.org From: Kuninori Morimoto Subject: [PATCH 0/2] of: replace of_graph_get_next_endpoint() Date: Mon, 25 Mar 2024 02:56:35 +0000 X-ClientProxiedBy: TY2PR0101CA0023.apcprd01.prod.exchangelabs.com (2603:1096:404:92::35) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB6831:EE_ X-MS-Office365-Filtering-Correlation-Id: c1d91556-27b7-44ce-899a-08dc4c772f84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 70EtgyRIW8O3CAzkD0ReScL+49q7Ld5ZRRoyLWLidKHQKFvo1eXwD7ZIxXnKNudbluLeWrvFIMk8vt4qR66F3Rz/fi6IRqyhfkC5nertnhIOuU4FWwhkB7hzuj0z06ZPHEPO0BBNZmaGOaa5Gdww64vm2aaKdGs4ctVAfBYOH8s7xKJ1Nd0hU285rciVlBAOWJsRNhjevJcGFawQfbSDiE9c8qFpvHT9lA1aGZkf32JWyPkK1PBRZz1CsFf+wF5IXH0zSkBaPvGLjDJFgfW2+J3fiS37FM7d8YFCnGBku2gKKyteMyKI+2I2JskoFGES4TzDfL+SHTujYGMBirE0p4zbe4qp2m7lJLeANO+mWuNtRmV5sBzEmOzXMZfpDAV3SuPXId62HAuQiJeXJgKHkmJz5PSMlaO3iqZyuvgQymc3fuhc0wMFqWSLL5GeTdFnL0v4BJ1RgcOLylA03eoBcvTkhQyX5N6HydO60Pm4ec9njyz7R68Xn9RVuys0avKK9UDFmDTqOR8+CeM7qrJqudSwcVs7Hlk37c65GgFfZpOG5SzX77EwiiJxpeofUEgkEPbmRlGAg7I38azQyAmX7YO0OQVyYihKHyThILDvPQB3vg3CxvqT6UiFE+MDbxeY6wPzc2OdvDRkHSuO9fhvoD6CHgA8rb7ruRBF/2pyTx4cQ1oPkHWU54ym/0U8HEck 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:(13230031)(1800799015)(7416005)(52116005)(376005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7rPw/bH5D4TJg/CH8EqhLFCqT29xwgjXckeH3a5IBphhhb4qT+UFw7g2Cl7Kmc+4Gkszy6efRQfrDEIhOEGTGAlhioCFFrGou3HXwGvvfK/vX1BkTnkFDEVmq2jG4kKPKH5J4Az0gem2ZCIXNBD0LXki1iB7E1CT2VcCl1hvw4Ot58ItKx+3ZsAvC4hpHYNTO4/BoTWJt5cGM7LApyDiDtqJ0fOPxGZL3zzrOgOXvwt56lZncjBuRbIsR2J1hhTnR+MM/HNBtgbvp7cH2b3FUQIim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1jatSPk7TRX0CL38s9FrhJCC5lk4fi2snZUOIeRk7vPrddU6Fhytit5sSKx07vzewFs8MERhI0h8NcEHj1i9MAsiHhQ/96d2Bmej83tfFTHsdL6qJhi3LZK3u124xEm1aVDi3m3/fuOJ3DDHuMBMqo9WEEU+Ape3FK2OBPPYDaQp8CkmSDJVuSd/5+iDPzNr281rtWP3v4LdX8KCrNIZxHMCL9iJ7nPEEi1SWUpl7tHu9y5gvGuwipG7VxnCWIy8SvNZUT/1UZ1nUL28gJZerQ4WM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1d91556-27b7-44ce-899a-08dc4c772f84 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 02:56:36.2755 (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: nMggqp4ze9He3eoN9AhqtkTOY/Ijoz37tRjFN3j5yDx79ZgJmNWAHXhwIl06G9yez9C2C7+AdSDOyJnTMzir0h3RnFFVKArImxzWYzBnojt/pqRozJX1HQ1JTz+OIMrc X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB6831 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Rob, Helge This is resend of remain of replace of_graph_get_next_endpoint() (In previous patch-set, media maintainer accepted some of them). This patches are for GPU/Video, I'm not sure who should handle it. GPU/Video maintainer as Video, or Rom as OF ? We should get rid of or minimize of_graph_get_next_endpoint() in its current form. In general, drivers should be asking for a specific port number because their function is fixed in the binding. https://lore.kernel.org/r/20240131184347.GA1906672-robh@kernel.org This patch-set replace of_graph_get_next_endpoint() by of_graph_get_endpoint_by_regs(). There are still next_endpoint() after this patch-set, but it will be replaced by for_each_endpoint_of_node() in next patch-set (A) [*] this patch-set [o] done [o] tidyup of_graph_get_endpoint_count() [*] replace endpoint func - use endpoint_by_regs() (A) [ ] replace endpoint func - use for_each() [ ] rename endpoint func to device_endpoint [ ] add new port function [ ] add new endpont function [ ] remove of_graph_get_next_device_endpoint() v1 -> v2 - add Reviewed-by from Launrent - use by_regs(xx, -1, -1) for some devices - add extra explain for drm_of_get_dsi_bus() - add FIXME and Link on adv7604.c - based on latest of branch Kuninori Morimoto (2): gpu: drm: replace of_graph_get_next_endpoint() video: fbdev: replace of_graph_get_next_endpoint() drivers/gpu/drm/drm_of.c | 4 +++- .../drm/panel/panel-raspberrypi-touchscreen.c | 2 +- drivers/gpu/drm/tiny/arcpgu.c | 2 +- drivers/video/fbdev/omap2/omapfb/dss/dsi.c | 3 ++- drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 20 +------------------ drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c | 3 ++- drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c | 3 ++- drivers/video/fbdev/omap2/omapfb/dss/venc.c | 3 ++- drivers/video/fbdev/pxafb.c | 2 +- include/video/omapfb_dss.h | 3 --- 10 files changed, 15 insertions(+), 30 deletions(-)