From patchwork Mon Mar 25 03:05:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13601122 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 9A3A4CD11DB for ; Mon, 25 Mar 2024 03:08:26 +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: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sE+CtRlMvUGa8K8/jgHQCk5lvi8Xd3+zqoyMgYD2RVU=; b=vibWTiSEqdiXqO5lyXdS0ZESL5 nAIgdjAzWj7OfeutftNtZuLR9npjRDIBd+gRHIAZXx4NbChgl+9nQPNEwzjAPBqdZMELS/6PLC5Ut GHLywx8H8tbF8y/hI0cClYL9O1qhAB4miZ49Afrdkx/NZ8fWH6hb6v4FaDFgmj6qfirPQnNMJecbb 9gl0WHMtCxIk42m4g/ifm+qQThTOWx0VcWKAG78byqMeD0A6bo97mgW8RBCqiG8qPtYavK06YwH7/ xkYtTtErhAdxoFqdkkmnb/DRyJYUB8rZlj8wXWeWYCGICORD/wc0Kvwg42lmTvgedFbk+d9ZEHN8F nr+sn7/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roagp-0000000EpXF-29QS; Mon, 25 Mar 2024 03:07:59 +0000 Received: from mail-os0jpn01on2052.outbound.protection.outlook.com ([40.107.113.52] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roael-0000000EodZ-3qeT for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2024 03:06:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FoEhlIEM7Bi1p+Tf+VtdVhuT+X0s3Tq802/1Fywo/qTpyAKvmA/pqVugj6cvaDpb89rQA0RCSntBctdw/5/CYBcfMiIxCWPUB8AjPPTVmNNjMj5M3y09ZD3MxnzvJz7rI6TM3UjGSIETe4L8Ge8VjcDW/HZ/zB6qWhGcpYDFgEG9dlFFL2xKVtOd2WiW3fzXyql29fUm/dLgz0sb93nAzJoQlhFWyz+MCRgaqG8MmHHeEWN8m7KfXrX64tbNr7bFUuco7yzQucCX901h924Y+aT3x56cyzxonKxkTYchNB+wX9yGb4z6C6/yA3x4FwURbP+owo1W5dtu1eZVnuLYEA== 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=0jldO+sU+/sBHPSf1MLXLnSJ7p7Zlxtt6VMOzEH9xjg=; b=VwDG0/k7Qd0P3xL8up+6a4jaIkdVY0RHMlzvlaNzftWDR6KWlQJpEhkTAZOWGv/kNCMUdrVRm9kGHJcab4bRGQnasqZ/4jLQhheMx072ZewRH3oAy7ktbT7fJ1e0H2Q35Xqz+2CtShLA/OQps2Bz1dJeEEW24u3w0w+l1ql2eAn1gTl152YqkxWGQ72aJbOK2gUxTbJqt2/86+XVHj/6xCLOxlgrrFwsDgi46lSRbQ/zrUS0nwXm4bctvDBU4C2Qwl5YUWpsgjA3OuHrrXpAh/Fuj/hn6jPvmypbaVhT6y141NoIOw05+y04UP9LH3RzYi/xayU/1TTStyvAAT+AjA== 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=0jldO+sU+/sBHPSf1MLXLnSJ7p7Zlxtt6VMOzEH9xjg=; b=Fdf+420Fw4hVxhJ12MoYocKrzHL5DHz1qhjKa1bi4m2lrESo+inTYH0uebiJHn8/FY6yqFyhfSONuxxtgUU6g61OvVe5ybUCEGCAVoRsbyaVPwbkLjXSzWTV3mpQi3Q4WTqh3jv3bo3R9berbUENdtnCBDbjepbasPi4Jz9pof8= 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 OS3PR01MB6966.jpnprd01.prod.outlook.com (2603:1096:604:12d::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 03:05:33 +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 03:05:33 +0000 Message-ID: <87v85b57uq.wl-kuninori.morimoto.gx@renesas.com> 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 In-Reply-To: <8734sf6mgn.wl-kuninori.morimoto.gx@renesas.com> References: <8734sf6mgn.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 5/8] media: platform: xilinx: use for_each_endpoint_of_node() Date: Mon, 25 Mar 2024 03:05:33 +0000 X-ClientProxiedBy: TY2PR02CA0005.apcprd02.prod.outlook.com (2603:1096:404:56::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB6966:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e8aa0c9-b7e7-4fbb-ad4d-08dc4c786feb 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: q9TFfRUd8bcsRopJQ0+QzclCZZS1q2PQBTCqEbcQBw0r7v/EHGS97ZVreVq2BltMv7sMxeR73+fkvH6cfF1+B6T5zuiv9sxLahoTolnIj4VcdatqJDH3upLMytBI3QQe5pbQKUtdfu+JD3o1JU51NeaWJ5PcrBJigPkY1GNdVPAENs+y77hBRP+ioCW1TWmrD1QcMbsDeIbfYuKFpZygSlGLx24jVeuB2hhdCSXVxOfKW+pYlQvHP7VrADQ89Ezdv91Zl2PJlmV/QX0jzFnU+oBOg+keKQ3G+fnD+VRSNY5ey60SiNkJmMPDIDRrvPzVptKRoxqVNztqwqcYur3NFlky2gXABLYjO42qL8fouO8FiuS9/ufofyGXlin+mZbaG4fWbQ15/SXD7gJIXXc4HeYShdbhMlHrBaSJhoy6+HGKFImg4+/5KFuIbqe4+dDq/acQXrPjd+xNWbUZrOlFkYSeh3CgdZ9u4nKvgPCFMZSFEK9zPDr6pP+gUiJwrCGm/AnosKTLovcE1aD1Qc8u4x6lPcJUa/xULFHTM4v09RliqHPEXiFOxjS7SAtXvMWsKOY3x6W6CUi3szhdo5Pq+2jMdCWuEbhQEuD7L08ZeR7KsfWyXrsHylgB8fnQMAK3E+kWDYxvlQUCI3l8M+VuSxfSLgHUcagoKMVWqz1ojnocT8AwUqFoSd/N1aPbbP+6aYrKbcL32g5H/M+9ZkNjJXvDtpwjn/8HZx860VMEOYU= 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)(52116005)(7416005)(366007)(376005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AvNsMx8CCQfL/9zKf2AUa9lrY9tEpx4S9F9twGYPgxSZLulk976NLOteAjBjiRQ3Tk4Zx5vkFt5VE4BSFTDPs/v+A6sqPhobtR0qClxp07F81AgMYv0z6kTqCgOgZLqFVU1q+2CJhoo/mjdwDWzqVXLQMqwZ64/4nR43nZaYAw86l3ZEj4pnH//KuEt4rkHAij1ewdhpX6Gnz09/CJTSaVKE5WAtbZGx+wTxbz8yLfQOijNbe3vAixhUoQa3wkiE5DtOw/hAwYt4US76VC+ViQ6cjkrtw2zs4MNzE4lhJ4HePAqjqKGCMvpDxMKRdqUhkoRJIXGBGsEtA+2zgATZmw6xUu/JP+prE8BeN7VmpQl4VTAUrvLwNRLKPD5yYxZDwioFQXIOl2qHxuYwwZNJEWyoZDpcq1jrhaFggV4PHriA8AXOZdh/m6YWwZ7FMgTCfk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CkpaqkFXolxLFn8yCr6Y+4Lz0n6apILeaHMtyq9idA14+mq31OlfrKQ8xJOCdL4LNQ08kJk66NOkYnAgnsEUB75I= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e8aa0c9-b7e7-4fbb-ad4d-08dc4c786feb X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 03:05:33.7873 (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: DgbqdvdV3tfIuu7ifp4+cGCTQXyJwQCVXbWEXRhr3okgR5HFEoNN2pWMcJl8tbGHywOL3AVAXXY7p5IykQshiuCHlso+pyqgu99GG5Ts5l/BdmGE2v8gy/EzvMMP6Y2l X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB6966 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240324_200632_049443_1E2A21AF X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. 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 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- drivers/media/platform/xilinx/xilinx-vipp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c index 996684a73038..38818b82a575 100644 --- a/drivers/media/platform/xilinx/xilinx-vipp.c +++ b/drivers/media/platform/xilinx/xilinx-vipp.c @@ -205,12 +205,7 @@ static int xvip_graph_build_dma(struct xvip_composite_device *xdev) dev_dbg(xdev->dev, "creating links for DMA engines\n"); - while (1) { - /* Get the next endpoint and parse its link. */ - ep = of_graph_get_next_endpoint(node, ep); - if (ep == NULL) - break; - + for_each_endpoint_of_node(node, ep) { dev_dbg(xdev->dev, "processing endpoint %pOF\n", ep); ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link);