From patchwork Mon Jun 3 01:17:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13683182 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 F0BE6C25B74 for ; Mon, 3 Jun 2024 01:17:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DB8E10E0E3; Mon, 3 Jun 2024 01:17:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="FeNnJdE2"; dkim-atps=neutral Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2078.outbound.protection.outlook.com [40.107.114.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id A181810E0E3 for ; Mon, 3 Jun 2024 01:17:26 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KK2driHEnoyUVKscI6CG/2Jw6hOBga0YcGzTgA0CJtWolSwHkqhkYPRMVNEv+VBB2O8Jrh9L+2qMaDo+1BGQHOv4o+ETjm7oXzyCKNma6oDZ4ejJBDcgVtMOECwKHNm7L2+3Pymr2z+qCR8Jx2q7STz5qmKusQcY+hnucfbxb1qIlZ/Cq7VDXjY4HzQNW2Y1BgeGZ4gdQ4ay1m4Dovg+1TgJhF66dWkRgoIWy98oDQM6PvHLB3NGMdVFBsuoZmByrzb5WboNyZ88/KyGwO5CRimi+uKI6KSrj9co0zmgjwbMscyFA4z5YiBdWBN+xYFTAOGjMu5pe7hREJ8UhzXuzw== 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=IILUSyIzYxtQbCPC2NkhwlKzSmP2Ym4D0qskb18WL4U=; b=lkznDeYNuRWJdyEVKMcphkVr27fswaWfF1cRpAuYeG0sq2ezFHQYf19qBA2rKIKDhPcHXHhd/M5I28J4/xhpnesPBfPUkARlSbMj8boIp/uZZV5KKMCk8wYZGeT0Yw5FN6PDzR7wnSTdskcHO524jsiIF6zKViTdhV3oFslpmYDnfeyu/CC/uDx/urtJlKWCG/FcRZLxoDV3XeKJXz8THrm0gxnn5w+0iGky+HPS40olkhFCCs/HyZopH2nZliwaN7zOIyVlAr+s81TIUC7PmVijJCayueWyHoWvD6WLOVmP5MdSHh3FqlYENiRCRNz3pyun+u+3hY+q2SHBmO4E/A== 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=IILUSyIzYxtQbCPC2NkhwlKzSmP2Ym4D0qskb18WL4U=; b=FeNnJdE2M2CuNDIUy5l57QL4AFG6pLm0w5rNDDxGWYq3cMfSZiRcO+R2xnxkJekV9bmAxLfi42CjkcjuutQPILuUhsNcJfiDv/70rVDlKfuOC3ByxNMBDoYFS6KpEA59RIoMNPDEiiilbh2RGgv96OGrmL/3eAoXfQ9oWBJC5Js= 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 TYAPR01MB6330.jpnprd01.prod.outlook.com (2603:1096:402:3e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Mon, 3 Jun 2024 01:17:20 +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.021; Mon, 3 Jun 2024 01:17:20 +0000 Message-ID: <87v82q4yg0.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 v4 0/9] use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:17:20 +0000 X-ClientProxiedBy: TYCP286CA0152.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:383::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYAPR01MB6330:EE_ X-MS-Office365-Filtering-Correlation-Id: 1eccfd3a-6236-4c3e-2560-08dc836aea81 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|52116005|1800799015|7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d9b/+S5TD+MCslg0m5+jfHsUQ04NKsoL1ry4HJ4ATjGU2g8Qx1ks8O+MHUoP4SACq2L9u0dU0oHr5hLjyqKrXKBDrhf8TRGjBwEtiMfmV47oJpsSTHsYcBrxtVa982lykZWoCbY26ZVX01YLTx1hf0sH2+qnyDjVlMZpb1OEkRyt9VzWbhGyvKgzgfnwr9yiRgNEELna7tikq9P7+VM1SxQi+UJUyekcgptvUk8ERRzuHeuZ1aJuQFogkPevD3lmByiJ9Xa16bt+QehnlZUkWAlN26mQTg/BF7yXK1t4+BBGZro/ 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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: U+4CKNoOsN9aA4DPjeSE3HWDDckSuwmpe4YQGT0BmLg9E/eP0LBspDs/bY9I9sXEhsdKdBQoTXB6usmRubRtvFo6gkBk/46t7XHrtLQ1SRkQdvrTBvasQUT8M1zoSkKVizGWN/VAmAJCcMn+d+iW355bXrvqUA4cYks2iWCLcH8xkN5X0u6MaEZUIYOUazKzFEzRdy+k2EGzCSXXeGBDsEGPR7os/cNVwolpfl2h9sGZt2IogN1gFWpRGoVAZDKun7dCJtSOUkWzUkYNnLif62wQyxApRHOxBbXRoWxMIX5KKgGHXyPTu+jOHCtQgfFrZZfVZqc0sMIHV2ZOtHRrBGMw/SOX4bwo+SQqdh9q4IGMYLOmBjjdQo9avlszirIrVGM0BIxbAauBYKefcFYMCGoPQTr71a2Tp5oJEKit4KUBilCVQ45PHTa9AG6sXyWkVdlVbYiicn2uN/TwJMSYs8ODDQC9hPSTfiq9JMeGfJZyr5EXA2ckQKLNrVWLSSPNDkGnQSXA7Pg8+pWAPyCMo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vgw9Wl2XtPUT+iHreEP8w7A17KM7kykeBpJaRY5wpM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eccfd3a-6236-4c3e-2560-08dc836aea81 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:17:20.5259 (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: fTVDtbGY60/qUzMSYUqeRWaX8Kvv2wyJ7pCxTW8BLX+pUarXlikuF3G3byonMvgy+/fqkyNpsN2rPPSSOPk46KUrc6OfktwrcZOano13r4azgwn6md90MSBbgvAGxgSd X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB6330 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 v4 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. Dan is indicating it needs _scoped() macro, but it is new new feature. So I think we want to have separate this patch-set and _scoped() patch-set. I asked it to ML/Maintainer but no responce, so v4 doesn't include it. It will be handled by other patch-set in the future. [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 v3 -> v4 - fixup ret handling 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 Link: https://lore.kernel.org/r/87le3soy08.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 | 10 +++------ .../deprecated/atmel/atmel-sama7g5-isc.c | 10 +++------ drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 15 +------------ .../omap2/omapfb/dss/omapdss-boot-init.c | 3 +-- 14 files changed, 46 insertions(+), 84 deletions(-)