From patchwork Thu May 30 02:05:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800296 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2043.outbound.protection.outlook.com [40.107.114.43]) (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 3FAD718040; Thu, 30 May 2024 02:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034722; cv=fail; b=JmDXTjse6b0B0Y2VNr9I0kt/WXiTYQ8256RI9ou6gW+64GwmhppLSOBVGuTFUWGhOWF13becI3eFBlKsLN5BVmhCGdMnwP15/2Zbg5+iBVPDyw1iGipAvRHk80ZXsmYV95rDbcZZiAB/xiiYVGPQ0HAU0fUqO028NwG80XJ73yc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034722; c=relaxed/simple; bh=onW2WfcRZU6nixN0Zd9c3I9XlrEOsbiKYmtu4c46fhQ=; h=Date:Message-ID:From:To:Subject:Content-Type:MIME-Version; b=OIl6sovC/OdP9fQQ49mAOg/P1SL9dfr+KVJ8u//NhyU0mMKTa452gYVCsdVdgHk/dKK3Fryc/BzLAhlYf/pNZu5fZM+aoAxViFRU+75jCWkxKJVewqKIAR3ry4FT4TGDRhnBHKghAmlKnvQkKVN1NCCuf50a1b93yiGitKw3jQQ= 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=DFO1ImVO; arc=fail smtp.client-ip=40.107.114.43 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="DFO1ImVO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nheeWCPEFKVMC1sFeF8CGvPXokfmqBqQJNW5qksflFdwM5UNbl8z59V9E5S2HpvFQ42AJnjGsPc8J5K9nOeZnH9QPArfpp7W0cEraKRXywF6R0fFk4V0zNqfKtTzqWNDD4/aOcEHeyIjevB/jBYnPaSkQYkD+TQYZRO5mDLDXGGVpjlfNu8x7FTw7Ae0qBLljmbhXOEBJYEllMehGIxShEBouJQ8Y4m6B3vCY8Jp2SCnW6wlatXu3mJwHxyNHeg3OfWYJQ1U06FXVMesCAf63PXMWe0K6NIiCx3p01K8kYmjlsE1y1KzTtKEvcFH0lUpxuHiI37PWY6aJf1cdRZV0A== 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=pR3AX50v+bX4RzO44Jahp2cb6FWnWDUwUTgdZFXFZiI=; b=bGV9mpJjW7QZ+JkQcEL80QXCnzLeMN0kjp5HJZZ6RkDH+xFOw14RqQ5et58znLXWX+Wx2BwQm3lQL0zcNUl/pupXNYJ6dKgY+KJgp47ZBK8J9Fb5Q0oZK51YGJKMJCQh7yg751hipz46LYEi8QSzkx/Y06ROULA/mAPZTTZidC02nxlUu2lcZ7UcDU6YVDugZNB9gW972EjiizgI54gKEw6bcAL5Rnj8t7nDHQTdZZxgFNrVmFb9XZrfKXUy5zkn/QtOBmQZRxfrYcDJlM/ZfbXNP3ssnYt06u+90Yjfj1L9Bldl3xKle9BBM7DcZu4uOn+KvQUOcQP3zdaJovse0w== 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=pR3AX50v+bX4RzO44Jahp2cb6FWnWDUwUTgdZFXFZiI=; b=DFO1ImVOAutv81HZcypbmLyoueSlRYPzX/Txxia9kC2T3oP+GrvWiub9MqBDeOj/fe47h33G2cEck/bTRe/e21vzL0w86cWC9LRw+vxTHDDXOtHQo+kY8GMymCLORxmTZlKw/Tw+sK5eKFAjByr7fEhRMTOJY2kWZVlyHewQ6XE= 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 TY3PR01MB9900.jpnprd01.prod.outlook.com (2603:1096:400:223::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:05:12 +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.7633.018; Thu, 30 May 2024 02:05:12 +0000 Date: Thu, 30 May 2024 11:05:11 +0900 Message-ID: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, 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-staging@lists.linux.dev Subject: [PATCH v3 0/9] use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 X-ClientProxiedBy: TYAPR01CA0099.jpnprd01.prod.outlook.com (2603:1096:404:2a::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9900:EE_ X-MS-Office365-Filtering-Correlation-Id: 925f9eef-c0bc-4cbe-38eb-08dc804cf0a4 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; ARA:13230031|7416005|52116005|1800799015|376005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: aXF90MmS46ghDLNWGWSa7jhYBtKUQqMLgaumk23Y/xnQmOvsxDK5w28wdy2GpZs58MZzzVbOPqK5PMpcEweXkk25QW1jIR7PT8kbBMcwzAKVdWqqayS85NadDZ3n4ktzuABDFJYUGQM5out7TFQkY62oIB+Gh6OfwrdSbWEItq3Yz7oNRd/VmUl70NrC5dLz0EPpNL0EPt8X5nkf7Am3Y63rCnYSYmDvMCQO0CmiOUjxVb8364H1Vh1b4cyvo6vLld4UFLjFmzx1gWmWMpfbxUbFqUR4lhNcxx5e2mZqUQ4VyUbWzpxMWAlWwsr05TdRY4WAGNdmR72DfzWxzOC4O9M17RiJ+PjS1q6+ujAQMl4fjw/IGuHzhokzYXvxDbN/QeqgIA7W3evxeThE8J3K2AcSuEnAu2tZxI+rz151Us1x1mMinThMOy2Xa+B9XhBwqUXZvRWtAmONJnkFXIDkmrb8z8wVbB5TE1UanNSienYWUKifpyU2BYGpT/ul1/GIycBtcD3r80piZnuE/LDz9KFr+HFC+HXebaMnTI2f3Q60SySLREN+ClEAr4xC8EcBAyGGciRYTSWWVQayVpJ09hB7DkISFLo0l3+fHGual7NIFvnQ4CTf/Hp+lc6HWXron6wRc9hgK9XLtH/1ZxAP0TmVbGzBKuYL2KJGJzoLDB/tm/u+NQ0BEyW/M2jWb8QgQBvratHtG6EWdgQ2TthFvW/vUF6zZbgLz07oXM/KuOnb8Mf/bZ6/1PJbDsvOm9l0yyk0f/d6zEYKsXF9q8eKfVmxllk9nrhSWdxCewRUh9nDYjz2fG/werE9sCDHDeitrZWpPyYEHLzjkCfOYVxPm+FRjtvC4RE9RnD929HPilF0gcr141TE4GE1xQmTA1HNzRbix/+WXLe6DlOaT/SNYJdXQNL7sm35duidd5snxy0qbnYAlMDvZDeULpNOfS9kgFt9/dp1chkzJr2G+p2bpq6EtkV/4ZmGXvhXdlKCbvN5OIDyAlZMlgnmP2MMlspA8TT46eAsmYWd/aA9halkHJ0MsHFhZHVanQZQAtPatqAu1HUmnc4c278juW19ypePvWKwEobVNWflJFOS0d1oEDApAqCszQSMY7y7MWLbDX7QchD6wY2iBmUYonlnsHaWdrVsW353huGpMN5lzH+3r/FjzhC8NPxTzDJgzNGQbsJ1Mw8mylQwuKEcG8J4awxrLCL4PMalVSM2dlnvFghFQSRirAW172hNrCuqI2qg7QZtnm4SI0HzKgmoNoQwdwVOMg8BizrLMvgF+Sczyvz+r4YcYuwJaTXyQ1tgCw61mACGSio/GqwMYwOPa0bA+dKw 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)(7416005)(52116005)(1800799015)(376005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YWvhuWPV28ve3lYUgCc8a5wwgIcBYP30etFdS6NK/8plJxD8uN7mlXWsMWHpthhGReWMeVJYiZ63PCkiUBisUUjf7mjUO33VwtlluBEce1oBApAqGOkuP34u3hGYGvbITREpk34mRNnuQz/vlvFho7PTu6t4hxVycPIY2GSKOnDRYC5PUIYtNWRVR10cSioXyT3x6EgdjkFkwkE6mfP99C+rDjU/Cla2Wp2Q4RFax4O4S6xHM7w7/H7nYmF0zEfdpv28Yo6j7r814JbLoo3/EvYuZEh26icpMm+e4s9J2z3ipanq2h5kyYWJLKuFbUv2Wm/gLRv/7gmttzsLdmwSFGbjVmelgBjgnde2cnDxZfk+8DZxD3NluqYQiagbe+Oq0He0JXWki9pJLNfaK4e703gcsOCZR8LY6J64lsiLAVlJUkKlGzVwkbllGOUlYd4mAZYbXAp7hH/5IL0xXG7PKJhxU2Q9lAVuU1zOjmuVpcpdV4WPo9D/kDsxlabXZMzBSvtYlaMvPhDvqMvD1AYKKGISSyopLmowE0h6MWREb751Nivxj7MWQyGRPjAdhf7Ad28qVzQUwTk+BTBsmav7xCQMJcAww//+IzTPhxIvFw+qFzU5DkRvaLhpiZqhmA9jK7iW2JR/SMPgXQ2OqTKVkeYuqF2tv1JJenQXsNAc8fkjGrDDqkz30AugpDfdF57BxFqIRycsG85F1DoxMtcjTXMUHxsMOyCj1gZY3HMr8f33Lshd082SQz14UD5NgyvaARqvHvt5FMemDxf5u5VPJkrpmIHFWPTWZC5SJGSeFcd0FQLpMDY41a/pbHdiArUyhgMGI4EH4brpMTlAsHLOFLI5x7phmrFGbBupSZe/T9AzPVuZtLbSWoLJUFLcqiKa0aM3dKWZ+0csadG/F3tazyvoj32N08xZDtVt2IwqiUJ0cfXcFz72u7ZjGM6JKe8xqXJ5LZnFFRKjEH2jWoisPY7Ttm4kEgDyfCYWHvTnwzyRmet53DoGgM0JA08CQI8r05/x0aqytgLY2nQdqla/Kf8QJEabEiLWdw1lEusFrsiLOQNsUfBUrMJCrzbNd4q6M2jygC2Bf4hzKBuARvMwpL68cL/4kup1APsVYUduVIx2JuMkvzWeL1wHTkBjCVVRFp4jTlVF8WJ8cmbO8OKgPhpkDMQFaj3WQnasGw067eDh6zmd7BkSRPQEd03TZ+iYjVBxSXQOXKqSTl2hIii1CnlkWidWB5Tz2Ao9O+1Orcym55YbyyNgFbyo5vkdQKYQVD/5JWaztDGoBVum8yRsllOpVSI5TQRydbOEpJPCzgVK9Dxc6naj9X2AxTEVEwY35sOkxalEvToGPPqixWPKMRY/RKnsDDxdlQgzLHx9mAn9+iwBgjyOmrC4a/YSjp+22lQQlLIBGh+CpgQC6Rz43JYwuUA7p0jkWKUkHQOP68YLdtWG6/Rft8o3ONA2tA3NNHGoLoJwT4xtep8sAWjYp0U2y0AAXES5n5qgID5iYSFsEMeZuAPgrHMfqFrP8oyrSqudypP9/l4RSqEEGAnk+tM+2YFb7IGxSiDcFazKBFJjogpKIMrzSAxqEs8+kAYMmSYaU62vOWTqfAnJWTxINrT7p7ir1s4dI2nfW2atllg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 925f9eef-c0bc-4cbe-38eb-08dc804cf0a4 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:05:12.4283 (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: 4xq2yFct6RxW2BNzCSfLiUL8bI5zJMGxDjIrhc3yoM4M4Li1aCKY1G0vg6x6lZF4WgOHml9wKnwDk4WTCt/g/OGV70bnQfEEkOM1AR7zFijsPzV3fC95Ot0eDliLAG4q X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9900 Hi Rob, Helge This is v3 patch-set We already have for_each_endpoint_of_node(), but some drivers are not using it. This patch-set replace it. This patch-set is related to "OF" (= Rob), but many driveres are for "MultiMedia" (= Helge). I'm not sure who handle these. I noticed that my posted 1 patch on (A) was not yet included on linus/master. I have included it. [o] done [*] this patch-set [o] tidyup of_graph_get_endpoint_count() (A) [o] replace endpoint func - use endpoint_by_regs() [*] replace endpoint func - use for_each() [ ] add new port function [ ] add new endpoint function v2 -> v3 - don't initialize pointer. - add Reviewed-by / Acked-by - include not-yet applied missing patch v1 -> v2 - fixup TI patch Link: https://lore.kernel.org/r/8734sf6mgn.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com Kuninori Morimoto (9): gpu: drm: replace of_graph_get_next_endpoint() gpu: drm: use for_each_endpoint_of_node() hwtracing: use for_each_endpoint_of_node() media: platform: microchip: use for_each_endpoint_of_node() media: platform: ti: use for_each_endpoint_of_node() media: platform: xilinx: use for_each_endpoint_of_node() staging: media: atmel: use for_each_endpoint_of_node() video: fbdev: use for_each_endpoint_of_node() fbdev: omapfb: use of_graph_get_remote_port() drivers/gpu/drm/drm_of.c | 4 +++- drivers/gpu/drm/omapdrm/dss/base.c | 3 +-- .../drm/panel/panel-raspberrypi-touchscreen.c | 2 +- drivers/gpu/drm/tiny/arcpgu.c | 2 +- .../hwtracing/coresight/coresight-platform.c | 4 ++-- .../microchip/microchip-sama5d2-isc.c | 21 +++++++------------ .../microchip/microchip-sama7g5-isc.c | 21 +++++++------------ .../media/platform/ti/am437x/am437x-vpfe.c | 12 +++++------ .../media/platform/ti/davinci/vpif_capture.c | 14 ++++++------- drivers/media/platform/xilinx/xilinx-vipp.c | 9 ++------ .../deprecated/atmel/atmel-sama5d2-isc.c | 8 ++----- .../deprecated/atmel/atmel-sama7g5-isc.c | 8 ++----- drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 15 +------------ .../omap2/omapfb/dss/omapdss-boot-init.c | 3 +-- 14 files changed, 44 insertions(+), 82 deletions(-)