From patchwork Tue Feb 20 09:39:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 203527 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp294220dyc; Tue, 20 Feb 2024 01:57:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX9nk5XsT+weuCjIjRxBRScMWxDONiqJJUqM9oNBjfDQarp2Ulebl3g5oXUHHMUo8P/rim3jVoOn7GF75DPfaXyG6hx2Q== X-Google-Smtp-Source: AGHT+IGW8u9+bOS/51PzQJOd8R2QGQVi5kHeDcg7AExwpo2s5+eUBue5zqen6QX9pnZDsB5Ddmib X-Received: by 2002:a05:6870:2188:b0:21f:1a0a:8d59 with SMTP id l8-20020a056870218800b0021f1a0a8d59mr1269468oae.22.1708423026971; Tue, 20 Feb 2024 01:57:06 -0800 (PST) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a17-20020a637051000000b005dc4fca7d3csi6024779pgn.200.2024.02.20.01.57.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 01:57:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72716-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=tIuQvPYY; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-72716-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72716-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6A907B25F93 for ; Tue, 20 Feb 2024 09:43:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF8F660DD4; Tue, 20 Feb 2024 09:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="tIuQvPYY" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2128.outbound.protection.outlook.com [40.107.21.128]) (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 92B22651AE; Tue, 20 Feb 2024 09:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.128 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708422017; cv=fail; b=iNqAjdnvvaCZd2uF4hsFOPubeOjX1Q5L3/RPZ95mWeqDJnssHT4hw9hbueGlZ/Yk/XJOLne6u/N4djYpo+VRW54cyUEccZPt30u0+ybWoSrP6YdRvCazln3WYlNqmNRrqZO/NXByytUvssiPbVYZDwqlj/AIzWCOW7eo5cyOLGg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708422017; c=relaxed/simple; bh=GLiudDkgxd9PwtDF2ZLVlA9KPqdrWKb0+KfZ9LqBOQU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Im/rfS5NgpDskFJcyoeOCLQvs8Pva2mGuJ/pul17euc5NGv/WugNNNONHZdp7PqLfe1CcZBQgPEbl8+A6dAEDaml/3W1vcim4zkdl1SpMIabFysCusJYgfgX4DR9eQCRhZM4ybcVp1IW1X3O61Z+CxS2DQi67NlvJKofbYm4aKw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net; spf=pass smtp.mailfrom=wolfvision.net; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b=tIuQvPYY; arc=fail smtp.client-ip=40.107.21.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G2ar07AkIvYfpvWGxyXhuVDGzf116ou+iJRxy6jDK3SHCCcrRwAxIXNkoJxVdoLHMeKb91S2MKrtRAQFR5j5f1J6uS4wqqW9jL4B6A5CHM7sSP6FoG/Ew6bDW2rgJxavtvw7q2e0McUflYHc9Dq/E1XiduKWNndxHSe7sR5/lRrrgDoQwYnx9BAq8XBxDnyxomZex6IAMzc9/4ibk9AVzEHcdR6SfX7ddf7C4r5ZX/1dMrzBv7IMsQFwjs9EQfSH+obE27STaZ2kIxHTbToBe0dB2y4U75GESBp1/k14BUCoXDV8RaMInNg+KnlUlji9w77BWif3OwfjdTE+QGigcg== 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=lnJCaZUTWdtDlpnJeFNWzjxRCQWowo4QDLyEyvF5jkY=; b=nY1ynd6Li44OYvzJgf+H0qs8Xj+QB+4cG6vQ6t/JaKAmWlmW3xSg5dHqOO+YWSajcLwFUM1On8nOiJuq2rsiqeR5VAtVvjZcrAUICxtBjyD18o2/tIJ0BRPZ1caDU8gvtbitOhKs5VuyzFczNmVJZS9vApqtOZ1/guWxqJUZTkftcUytbgUvCO+EBO8Lz9bw0GeHR+k/JamjtTEL/uAvETjhl56/5NXkDbH3gZ5E0vrLOxhLb5bwnO+cWpo5HFunihbaAwvdCNYxbyAh18e8pejM6atsd+UTirbbhqGzglYonGm6CR/F96hrYxEQY+ZwNBhnAweuAdLR6ktzUVpcDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lnJCaZUTWdtDlpnJeFNWzjxRCQWowo4QDLyEyvF5jkY=; b=tIuQvPYYo4q+1tUh+vzroZZtxrfG3O+FX1fZXMibm1rr5ud+pUsJRCCNOo0CxTMRCYA3Za6NhJhIlOohuW6jhGVFeDPl9XmPxiBfnNI1OeZgJgRNhMynr+FP4MdirBmUrdQUTJnmUu1ysZdIBy2QSVdkJ8Wd1LuPvtdnEl91bfw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) by DB9PR08MB6763.eurprd08.prod.outlook.com (2603:10a6:10:2af::15) 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 09:40:12 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::7409:db60:8209:c9f4]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::7409:db60:8209:c9f4%6]) with mapi id 15.20.7270.043; Tue, 20 Feb 2024 09:40:12 +0000 From: Michael Riesch Date: Tue, 20 Feb 2024 10:39:18 +0100 Subject: [PATCH 08/14] media: rockchip: cif: use port definitions from new header file Message-Id: <20240220-v6-8-topic-rk3568-vicap-v1-8-2680a1fa640b@wolfvision.net> References: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> In-Reply-To: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> To: Mehdi Djait , =?utf-8?q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sakari Ailus Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Michael Riesch X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708421995; l=1108; i=michael.riesch@wolfvision.net; s=20230803; h=from:subject:message-id; bh=GLiudDkgxd9PwtDF2ZLVlA9KPqdrWKb0+KfZ9LqBOQU=; b=DbC1mpRB6C3Pwlv0a9oO0CV69LRew8Owjlx6bhq+HAFb7VT1VxFI3wDldmoag4cY0t7ieA3m0 tog1BIuGX/NCGamjFux/GZhMn0/9HG0cQ9n/F4ahtd04ZWEl88w1Cq3 X-Developer-Key: i=michael.riesch@wolfvision.net; a=ed25519; pk=9ral3sulLe95bLcbaiNXTgUTRiBayRBEFZ5OVIEHp+0= X-ClientProxiedBy: VI1PR04CA0128.eurprd04.prod.outlook.com (2603:10a6:803:f0::26) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|DB9PR08MB6763:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e25c655-ae6e-46d7-d6ce-08dc31f7ef58 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z7rzcSuNbPESye/Gy3KvxWUwnBJB25wct1AprihqklxfzBE1GKtgGUrErn5lXBYLWtciFYOJTY8FKKHu5HKkJhv5nTi0HZ+Uo0PCEdkQdJfUQ+TRZ9b4ieBHxdkejr5/PSKoR8LGfooN+aD3tleBbTZzRwhQ6BhfpSEEV0x2i8CfBz0FvRFDuR1NoeZRrmHYV8uEvJ3cywxMVM9CKdMyY50EjXeLteVOrQ8msaBJhI/Y5QijmqTYcH3KycPLvJW/UB/1B5to2YRnQgiRVhCJxjumDpkCa8ixSPZXdH2ItcHHuWoYvE0b+rvYU6EZ3tj1yuOXEKNrxF96sy3gU8NrZ6KJdoxMqa5aVZ9n9XdrSVEs+z4nNgZauVmv8CIoVkPne6Pi0PyP3wECyk/8StwSWO8R8aKI0q2FqRuJG8t36wkjYc4BhmeT9OGrjeXuThgVtFA2wm37BhNVbMplu1qdtcWHbGnPF3IMkwIuUOQiXjpY214j9pj75Virv0UfTrtzjQpgGk6H+K9C0mL5QtPLVnyE/9RH8ffVe7J3lIN73JbN5nemkRRq5XyESIM4wgREOy/C7Ls8WjGJ/bJbh8xO8G4habIPHz5YkD8wFevI8+HshKSRkCnzYViG8ShqvGp08OfapH/c6KVhITFk0KYd9A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR08MB9155.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?nR3KyvZYc3d2LOMylqj/iy0DA0xp?= =?utf-8?q?io4c2AbSBB1bRM3puAu/k3k2GwJO+7H4d2AFZlOCDAn3fL2IA68QfWDJKybievref?= =?utf-8?q?6eZJmsqeDAKNl1VJex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Xz4DQor3e6rWNQe/XbFgrR3TS+p7Tse9bgwWioZKjfKo3QbkJzVHkazG?= =?utf-8?q?/pmzgUgubfE3w5KXHuoYNXnTXGBxtvfAaVH4PteLGBXNaVncW2JAY1IaWbdwznzpc?= =?utf-8?q?pdOh4ADaVpp4hvqRd6N49Xg8pnpw+IgxKwbM6GBkfVnhYO64TsWEPcQ+a1ab+s/HI?= =?utf-8?q?cFb26z/kXHF5/oGD42oYW4/5vqcNL2UOinrDfBk7B1j4YAAIG5z3Jqp4WTuTacE0Y?= =?utf-8?q?qj2/onjnDPujyv0ti+KQedj62/OEIFOR+qyj0xSoF5pdnPxhxfiNv0mK+Bb7zwqse?= =?utf-8?q?GV+IbjnusLPKBr6f+l7VdjA+C7S6Yw0chBYn/QsXT6+wuTbtrn2hgXhXQZkavydL7?= =?utf-8?q?x3gozwBxSC4R0xTDxZlbExNDVx2cTrycHkQPCXFqEUUkUDY7g57V9jGd3ahhKXCmC?= =?utf-8?q?AOHF4tfvafwQYOaXufbwql791JuWWjvFK6YMGsVsd1KeVv//IGUJIezGk0N/bw0RI?= =?utf-8?q?PeuHgEwpITXBjrPiXOQorkdZTd/KWrs07bfTHC4GjxO18mjxyTGnzEzw5swCVyOav?= =?utf-8?q?eQrfTyhB6qP6+DN+noywK8jLz1tZ1DX2Bg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 6e25c655-ae6e-46d7-d6ce-08dc31f7ef58 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 09:40:12.2767 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: r/cNMi6+pTuLQooRPdbzWWN8NY6ZST6iiw16PPlZivgK7LhCAhx6pdXel0DEuSsMhsOB8DQkzaSeWdeqqys7Kr7zD8byKxQcpX09yPfGTes= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6763 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791411384121438781 X-GMAIL-MSGID: 1791411384121438781 Use the recently introduced port definitions instead of hardcoded constants. Signed-off-by: Michael Riesch --- drivers/media/platform/rockchip/cif/cif-dev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/rockchip/cif/cif-dev.c b/drivers/media/platform/rockchip/cif/cif-dev.c index 923831827be4..c4282449a93d 100644 --- a/drivers/media/platform/rockchip/cif/cif-dev.c +++ b/drivers/media/platform/rockchip/cif/cif-dev.c @@ -7,6 +7,7 @@ * Copyright (C) 2023 Mehdi Djait */ +#include #include #include #include @@ -85,7 +86,8 @@ static int cif_subdev_notifier(struct cif_device *cif_dev) v4l2_async_nf_init(ntf, &cif_dev->v4l2_dev); - ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), 0, 0, + ep = fwnode_graph_get_endpoint_by_id(dev_fwnode(dev), + MEDIA_ROCKCHIP_CIF_DVP, 0, FWNODE_GRAPH_ENDPOINT_NEXT); if (!ep) return -ENODEV;