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: 13563259 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2084.outbound.protection.outlook.com [40.107.113.84]) (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 01D2EFBF4; Tue, 20 Feb 2024 01:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708391644; cv=fail; b=POj7BNJDkBDn57mhtqGCiIPUthBD73kUKNyHc2gu9BKbZUavzjL7ab9tIUsGtcftf9Ov3p0X415ile3IPHUkFDO77b3/APj+2+qpj6fymVaoWjHEzr7hAWP3xY/V/wcKbDs59oAVoT4T3AjrWN+JjuRhdLVSpN7kxx9W7uZErBY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708391644; c=relaxed/simple; bh=YRpjD1vhr6/apzz93wNmFNjKkhcpKm74mj46reh7ai4=; h=Message-ID:To:From:Subject:Content-Type:Date:MIME-Version; b=Z7j3N9RLh4vhLgzGE83r6HiMKal/PPCIl0/9WXvMjTDy+/wXJetPrvVJyyBKdBmTTUdVI1ktqM5c773fvRZvzY5mXc/eO6hbKOBiT3au7kkSkIzoN8PnCgXbU4V5swSiRYCmczrezGPsoIrpC4wonCrZGETIvDVNHRe+wHxpsJo= 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=fzN0LOKc; arc=fail smtp.client-ip=40.107.113.84 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="fzN0LOKc" 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) Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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//tphezPU9vHwSFNIkRK5ePFc0BMc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5izxV8dJ1f2HiOzm1xIMDRjThHH+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 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(-)