From patchwork Tue Feb 20 01:13:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13563271 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 0E274C48BF8 for ; Tue, 20 Feb 2024 01:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From:To: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=l0PnJde+F+ScVWC4Z5Gljja368L5gN3hRmhBkIeVXzU=; b=bv6+PaedYEIRd4 eMTYeKDpCjrcsGxKzxImatoc8ezhu0wVCl4n/I+abGDSQk29KVw3oyMBufKVaRKqjkOMcd6ydbtBm t6R09KFtk+y9yY1/wAcwq2VPuxfdkbtkPCd7hT24JUwqakIFlZ5+MEAyHmZROgrN+0V0CLNDwY7cu OvsXSjcYNQNS4YRX85K/fxj28fi6iIKXWdgidsONN5U3OAw6K+CbsifVUHQG7qBRrRSkwG2v9cBKI LQbkJf0CXo/gR2laI7gPfDr8XDDvI8x6+CLAI7fCaOybrWGAN873A7VmeJUfChq9wh1JdeKSJLzKe YUndNyIM2mOWX4byek/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcExV-0000000ClSO-0Fps; Tue, 20 Feb 2024 01:30:09 +0000 Received: from mail-os0jpn01on20600.outbound.protection.outlook.com ([2a01:111:f403:201a::600] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcExS-0000000ClRR-1YSF; Tue, 20 Feb 2024 01:30:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nTxHxJtaxA8sa+G4g43fbu0XvvXcF7jNVXzxDX3I+EUIisaqzbUzIEre4Uou5LjEidXb/Y1xCVt8L9OgkTFM/HTlsi0lt082sV1PuofHuACSOw5TKE+SxT8UD7gSQm6ByntFosQG0xn6BOcwGqzJMuPaTrQlH1gp8yBrXxxY67e6wfoXVeFx3lel80gg0gPlUAdYZxoLJww5ni3E76LoIpEKWoryG2lEt5pLVZJWs6Hz/NidP11tNFOuo94OPgc1zPrYNbzRAFmeS6/FMYcvsIPJzVtvcriXuQpN5/nvd9/Sqxsp9G1q8xFzHRUkvPNAt1UhtvR7vAQaKoSfHpxyeQ== 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=1s0I5LH7+wq5eXtbHjAN0c5fw6/2Na9YnGXIeaB7fzg=; b=eM98Xoqn8H3LyRXWsh7hL8hpJwWHUdsx0BhwE3KJ2kB0lDsgtU7maqh1Q06DwyjfaKprnFo8+y7FB87Yo2fd+BV/6AscphILcvPvDa/U9pj4Q6nf0lEFNIWx+zaJvHYO2b++OxMHOdrSpNaC5E5kfhFsCBnA2s3ONza0xu+aq5zv6NqVyE1YI444JmWpv4HqccEAMINDSmXxwAXvkqLkIgG4BouQgZOJaHRjHEhqKHmfMRfjj5ogcFRn1hvQ/uM1VLHRtRtp+zR8G+prqbDFO31nSEG3AvHcLJ2LYZc0dKMDWacCa8e8vAU+wYgnsjLCgTVrbdbuEcXWY2u2Q/Q71g== 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=1s0I5LH7+wq5eXtbHjAN0c5fw6/2Na9YnGXIeaB7fzg=; b=fzN0LOKc5CO8CsyQgxSCt8RLHU7hnQFIdq16sQZTeze6EBLO0fLVtb2ajd0+enKIucdoPD5MD4uMCcpjoRNeTzFzVyu8dU7esfkbrQ7qUM3W7G1hwW1JZhMPwcrYkZ9bIlWWFC9sB2BX76CBMk5ZM4jQrfUwSqDrXZIytT6x+J4= 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 OS3PR01MB5621.jpnprd01.prod.outlook.com (2603:1096:604:c1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Tue, 20 Feb 2024 01:13:57 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::4d0b:6738:dc2b:51c8]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::4d0b:6738:dc2b:51c8%6]) with mapi id 15.20.7292.029; Tue, 20 Feb 2024 01:13:57 +0000 Message-ID: <874je4kkdn.wl-kuninori.morimoto.gx@renesas.com> To: "Lad, Prabhakar" , =?iso-8859-1?q?=22Uwe_Kl?= =?iso-8859-1?q?eine-K=F6nig=22?= , Alain Volmat , Alexandre Belloni , Alexandre Torgue , Alexey Brodkin , Alim Akhtar , Andrzej Hajda , Broadcom internal kernel review list , Claudiu Beznea , Daniel Vetter , Dave Stevenson , David Airlie , Eugen Hristev , Florian Fainelli , Hans Verkuil , Helge Deller , Hugues Fruchet , Jacopo Mondi , Jessica Zhang , Krzysztof Kozlowski , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Coquelin , Maxime Ripard , Neil Armstrong , Nicolas Ferre , Sakari Ailus , Sam Ravnborg , Sylwester Nawrocki , Thomas Zimmermann , Tim Harvey , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com From: Kuninori Morimoto Subject: [PATCH v2 resend 0/4] of: replace of_graph_get_next_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Tue, 20 Feb 2024 01:13:56 +0000 X-ClientProxiedBy: TY2PR02CA0001.apcprd02.prod.outlook.com (2603:1096:404:56::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB5621:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e267491-5dfb-4d21-391f-08dc31b13675 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cGP/19dofZfMWjPj3zfzTotAyY8ajTJKzBRZcgeUwepBpkVpk7uelp7DUgZNegoxqPuEwTI/LxLmBf9MQHW0HfCGMOhFEwPyinHuwBJkWa0Yfj5cq1kUvPmLe+U/E4duooEzjAteCR2zSx1NhBkqpzTRZ8UDb31uPiqQTZrT58vmzuqNYWWR4hNrXMunJBM9vN49qbgLCxCTh0jWgVBaoRfLX5dDGvSNi+2VhdjMzc3391wS2apNsW+F5GTtVCAwrkRosJh+e4USQvlxPFqXz5fTVcyxXPp7w6401clemux5Y1ni4ZjZT+QpJFf13XrzvlIO0vwXy1d2IDa6xhovJHYM2qvQICKWV9gzOsVz2ydd/dGX2ff/sZhqx3PZyv3NL8QoSwNmH8XEK8K/SDv7Ce1Aci/ge50aTeZUtlDIMJ2j+EEYqCUJJT1eopwsIcdVKBVyYjvYWdvvVm+cAWUcI87ZL6gyFdSxEeRnJTLIU9H2SeA7MGOaPGvQO/yPIqq4vnWIOO6gkedLYKpA/dKMBjosqGjgKmZfcCERk876dSrqdnhVXEt7rvOT93CjU/ajeIBxGVE0zkWtt7gt7/YYgS439c0bVimL3Gwt106SvgYN2kjvCqfcDLE5pB4LqlN8 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)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ay1QPguOQz5AL1ebYNqioZy0IpzIDgRUPedehTSiG+ZQlXjviWoQc6yCRgNxXFPsTTO0cuwGF/fGhiw6QtbTgcWLU71eKJBR4idTpYUqgrpMLxoJGWVG964vF2tu55rwi3GttoLsaM+9XgMdYvYeBpHst97PE9POrxhwsH49iOkpFtSL8K1tJg1EKtcAP0gP0rP5fOcIwMTQmwW11HRgjGNHspTBdnTPV34SVdq+G+AYRi5jkVJfvH2fDwSN+ob0t+OWw9jqRbLn0UbFF+JQHv2M+PhO/6Cbe/orZfJLlphUohC1w1lUm44UxhSelhvVOj2gPVWljSj8+qz+d7nm1r4eP/NM27zU6BWKQHkYIUrCPUkloz6ObcOC1DeyjgNE3/fzOyQI/utMJYIc//tphezPU9vHwSFNIkRK5ePFc0BMc4lWD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8dJ1f2HiOzm1xIMDRjThHH+tJOHLB9vRyVMVFWbY1xelTaHtaEuWGzVEtAN/0kWeVXjYlG3Inpd4kgw+kPg2MEeJ3Z+2m5LfXs3u3kPMmE1JwkJW5zu1DDgS8B0BwhrFqjA24= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e267491-5dfb-4d21-391f-08dc31b13675 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 01:13:57.3910 (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: JhaBo6Ov5BvJLLwCuO7Z3rV7yjJFojB2au9vCS1CLJZA+7KkGNkyfUIosdxck90uUBXMaYKvePyKNzeefJR4ufimaITqbgGAuJBAH7keFpkwLQU5oYyCz9SXfdjhjv2K X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB5621 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_173006_533940_F826B7B2 X-CRM114-Status: GOOD ( 11.21 ) 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 Hi Rob This is resend v2 of replace of_graph_get_next_endpoint() 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 (4): gpu: drm: replace of_graph_get_next_endpoint() media: i2c: replace of_graph_get_next_endpoint() media: platform: 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/media/i2c/adv7343.c | 2 +- drivers/media/i2c/adv7604.c | 4 ++-- drivers/media/i2c/mt9p031.c | 2 +- drivers/media/i2c/mt9v032.c | 2 +- drivers/media/i2c/ov2659.c | 2 +- drivers/media/i2c/ov5645.c | 2 +- drivers/media/i2c/ov5647.c | 2 +- drivers/media/i2c/s5c73m3/s5c73m3-core.c | 2 +- drivers/media/i2c/s5k5baf.c | 2 +- drivers/media/i2c/tc358743.c | 2 +- drivers/media/i2c/tda1997x.c | 2 +- drivers/media/i2c/tvp514x.c | 2 +- drivers/media/i2c/tvp7002.c | 2 +- drivers/media/platform/atmel/atmel-isi.c | 4 ++-- drivers/media/platform/intel/pxa_camera.c | 2 +- .../platform/samsung/exynos4-is/fimc-is.c | 2 +- .../platform/samsung/exynos4-is/mipi-csis.c | 3 ++- drivers/media/platform/st/stm32/stm32-dcmi.c | 4 ++-- drivers/media/platform/ti/davinci/vpif.c | 3 +-- 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 --- 29 files changed, 38 insertions(+), 53 deletions(-)