From patchwork Mon May 6 16:49:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 98922 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s41XR-0006dj-2B for patchwork@linuxtv.org; Mon, 06 May 2024 16:50:06 +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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E3EA284912 for ; Mon, 6 May 2024 16:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ED04156C52; Mon, 6 May 2024 16:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sEPH9fiT" 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 70E521552F7; Mon, 6 May 2024 16:49:58 +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=1715014200; cv=none; b=SsO6J3t8tGZGtqICZKHDbs9uPnxUgY3DysBYQTkkRexjCuC6BXJD6MUJAV28gjjG7xfoSkkiV/q4zS3euGPK4TzXPUFQxmUQLZj2ei0fok80JDpospLhb7iYRSklTi46y7yo4/XRiSYzFjoqeMkfSpM6aslb4O+fnkMZI9YP0ak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715014200; c=relaxed/simple; bh=IXDZhWAQSzG5f8MWFrZtlLPgVNOwwp+J+jB0UFgktaM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TCnOw7YYTGyeqD6R91Kr1tG5b2HsYHzWqwTxEAKWrc1tj/98wt9PqgMzkkCOWqodAbaW70JfkWN/hw02ef6/wcw8GbYkJQgf9W+AEHSPaT2NcW/JaB3oriR0TTERfPu67fG1h6LEuybRsPt+4HczWiGsIgYg3hLyE8pnygwKrzY= 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=sEPH9fiT; 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 (unknown [IPv6:2001:b07:5d2e:52c9:cc1e:e404:491f:e6ea]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CCC6A908; Mon, 6 May 2024 18:49:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715014194; bh=IXDZhWAQSzG5f8MWFrZtlLPgVNOwwp+J+jB0UFgktaM=; h=From:To:Cc:Subject:Date:From; b=sEPH9fiTX4isNnHmf2RS40+ADn4cMrw2/uUX9MyhI+h+rFLGYlnoCK01YcAsPiSl5 mUcyUVk25orTzUQOBngKfklzLBwQMol/btaJKY1TRHIkO0SbiDVKdDOBECSJP/vZE4 x19qz7sbFTSqNnnGf57hraRICPL48x1e5Pp1nABY= 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 v2 00/11] media: renesas: rcar-csi2: Use the subdev active state Date: Mon, 6 May 2024 18:49:28 +0200 Message-ID: <20240506164941.110389-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: -4.9 (----) X-LSpam-Report: No, score=-4.9 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,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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 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 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 | 140 ++++++++----- drivers/media/i2c/adv748x/adv748x.h | 1 - drivers/media/i2c/max9286.c | 189 +++++++----------- drivers/media/platform/renesas/rcar-csi2.c | 141 +++++++------ .../platform/renesas/rcar-vin/rcar-dma.c | 16 +- 6 files changed, 256 insertions(+), 235 deletions(-) --- 2.44.0