From patchwork Thu May 9 16:13:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 98935 Received: from sy.mirrors.kernel.org ([147.75.48.161]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s56Pd-00037r-2R for patchwork@linuxtv.org; Thu, 09 May 2024 16:14:30 +0000 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 35B8CB22A54 for ; Thu, 9 May 2024 16:14:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2900E16F83D; Thu, 9 May 2024 16:14:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="e1M32LjQ" X-Original-To: linux-media@vger.kernel.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 04D3816F838; Thu, 9 May 2024 16:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715271261; cv=none; b=ID96d9BNgCUsMEaWd/qe6dQ0ZIMNtP/BALOd75wD3kVw9TlwIyrFOukN/3ekCtLgXEfrKwgP3RlzBq6hfAyPfAERvszpCQNTrGYG6BEs6bIFczSjJILw/CjFvGmLhkw6CFS1TfCZTD2kVmi7FDBW7kJ2hJDjk2Wu/mwb0SweR6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715271261; c=relaxed/simple; bh=8oBxZuB2ADwJUDUwHXhuRa2dcgBavevXYZYrTSbtaQU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qiJWObxhyRpj+8DJjuf0wMKSCX/LP1l781MS/B1qLVzL0/JmRk1EVEiG1jz+LMBdNJ3vsU+o1hBxZMPjRGDTVJk1V7mNcJDy03z2I83H6a0FNkwdGozOwvBvH15KcJvEKWVGmTsp7me3wgAr8feFs61S1s9uS/lsIDuz0iRXT34= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=e1M32LjQ; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from localhost.localdomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2E5EE524; Thu, 9 May 2024 18:14:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715271254; bh=8oBxZuB2ADwJUDUwHXhuRa2dcgBavevXYZYrTSbtaQU=; h=From:To:Cc:Subject:Date:From; b=e1M32LjQa7vAksKwCV4yPJJml3QPmAgHEPWznbcZ6hLVRvrF6n7cfSEujwc2JV9sV qviXkeBv54JFMD6XytoL3KDA2hm68noSvrulDwbnl+t9nHaYTz74kF3bmSpVHi+5JI D6fgWOgKX8b2ZyfJ2Shjirwu+ieRQGagukboiqTg= From: Jacopo Mondi To: Laurent Pinchart , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Sakari Ailus , Kieran Bingham , Tomi Valkeinen Cc: Jacopo Mondi , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v3 00/11] media: renesas: rcar-csi2: Use the subdev active state Date: Thu, 9 May 2024 18:13:50 +0200 Message-ID: <20240509161403.111789-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_MISSING=0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no v2->v3: - rcar-csi2: Collect v2.2 of [4/11] - adv748x: enum_mbus_code: reduce the number of formats to the ones supported by the HDMI and Analog front ends; - adv748x: enum_mbus_code: enumerate all formats on sink pad; enumerate the active format on the source pad - max9286: Apply the format to all pads to enforce all links to have the same format - max9286: Remove max9286_set_fsync_period() from setup v2->v1: - Remove "media: adv748x-csi2: Initialize subdev format" - Add "media: adv748x-afe: Use 1X16 media bus code" - Tested with CVBS - address comments from Laurent and Niklas A branch is available at https://git.kernel.org/pub/scm/linux/kernel/git/jmondi/linux.git/ jmondi/renesas-drivers-2024-04-23-v6.9-rc5/multistream-prep As a follow-up to the recently sent "media: renesas: rcar-csi2: Support multiple streams" series, this smaller version collects some fixes and implement usage of the subdev active state to simplify the R-Car CSI-2, ADV748x and MAX9286 drivers implementations. Tested with GMSL on Eagle V3M Tested with HDMI on Salvator-X Tested with CVBS on Salvator-X Boot tested on WhiteHawk V4H Jacopo Mondi (11): media: rcar-vin: Fix YUYV8_1X16 handling for CSI-2 media: rcar-csi2: Disable runtime_pm in probe error media: rcar-csi2: Cleanup subdevice in remove() media: rcar-csi2: Use the subdev active state media: adv748x-csi2: Implement enum_mbus_codes media: adv748x-csi2: Validate the image format media: adv748x-csi2: Use the subdev active state media: adv748x-afe: Use 1X16 media bus code media: max9286: Fix enum_mbus_code media: max9286: Use the subdev active state media: max9286: Use frame interval from subdev state drivers/media/i2c/adv748x/adv748x-afe.c | 4 +- drivers/media/i2c/adv748x/adv748x-csi2.c | 145 +++++++++----- drivers/media/i2c/adv748x/adv748x.h | 1 - drivers/media/i2c/max9286.c | 182 +++++++----------- drivers/media/platform/renesas/rcar-csi2.c | 155 +++++++++------ .../platform/renesas/rcar-vin/rcar-dma.c | 16 +- 6 files changed, 271 insertions(+), 232 deletions(-) Tested-by: Niklas Söderlund --- 2.44.0