From patchwork Mon Jul 10 15:51:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 93076 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1qItCY-00ES18-F4; Mon, 10 Jul 2023 15:53:26 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233255AbjGJPxX (ORCPT + 1 other); Mon, 10 Jul 2023 11:53:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233624AbjGJPxR (ORCPT ); Mon, 10 Jul 2023 11:53:17 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91735172C for ; Mon, 10 Jul 2023 08:52:55 -0700 (PDT) Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6B1A6BEB; Mon, 10 Jul 2023 17:51:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1689004287; bh=uES8qlX4nXchcqaLuHhqALkmv28PutRWH6VcEL0oLTo=; h=From:To:Cc:Subject:Date:From; b=Ay6v5ola5M59G8JMlkhOY1CTJQ8On0kUWenC2S7q52GdTNeybeNqgipMhUYFh3TML aHoIIt6cOtiBLuaZmbcUrlUKinJOB0m6jx89riSPu+OuZmRSJwQ2dN79gfbUeOdmHk fGeYta7JKxLA5nfNOLFjyWIoiE+ikgq+UAKRiUoU= From: Jacopo Mondi To: linux-media@vger.kernel.org Cc: Jacopo Mondi , Dave Stevenson , Hans Verkuil , Sakari Ailus , Laurent Pinchart , Tomi Valkeinen , Jean-Michel Hautbois Subject: [PATCH v2 0/7] media: i2c: imx219: Use subdev active state Date: Mon, 10 Jul 2023 17:51:56 +0200 Message-Id: <20230710155203.92366-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -4.8 (----) X-LSpam-Report: No, score=-4.8 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no Hello, this series ports the imx219 to use the subdev active state with great simplification of format handling, locking and device initialization. It resumes the work started by Jean-Michel but had to be ported to the new API and applied on the most recent version of the sensor driver. Tested with libcamera, by streaming in 1080p, VGA applying V/H flips to make sure the mbus code permutation handling is still correct. Thanks j v1->v2: - Two additional patches to fix colorspace handling a suggested by Laurent Jacopo Mondi (5): media: i2c: imx219: Complete default format initialization media: i2c: imx219: Fix colorspace info media: i2c: imx219: Use subdev active state media: i2c: imx219: Simplify format assignment media: i2c: imx219: Simplify code handling in s_fmt Jean-Michel Hautbois (2): media: i2c: imx219: Rename mbus codes array media: i2c: imx219: Switch from open to init_cfg drivers/media/i2c/imx219.c | 292 ++++++++++++------------------------- 1 file changed, 93 insertions(+), 199 deletions(-) --- 2.40.1