From patchwork Tue Jul 4 10:36:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 13300950 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47AF8EB64DA for ; Tue, 4 Jul 2023 10:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbjGDKgV (ORCPT ); Tue, 4 Jul 2023 06:36:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbjGDKgU (ORCPT ); Tue, 4 Jul 2023 06:36:20 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D5E139 for ; Tue, 4 Jul 2023 03:36:20 -0700 (PDT) Received: from uno.localdomain (85-160-42-71.reb.o2.cz [85.160.42.71]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8DBF42C6; Tue, 4 Jul 2023 12:35:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688466935; bh=1csZJj28HXH61Rqg62khzP4q6rwBSCyClMb40rFAm7M=; h=From:To:Cc:Subject:Date:From; b=NRsfpLkNk85J/Je+XNkYj7oT/ogbMlJuo2rXhcMToBZpOaWQ3D3yBwl4BytjeT7wJ 43PgyfReqAKzHMP6hG6EOmJZoR6yom0ywYFe6qhqS5hOAP2XfMZxgJ3C3YADO0G4WA 4ZN4fsddn6B+uRln54QUuknsORVIrmIveOmRuDt0= 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 0/5] media: i2c: imx219: Use subdev active state Date: Tue, 4 Jul 2023 12:36:06 +0200 Message-Id: <20230704103611.149631-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Jacopo Mondi (3): 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 | 289 ++++++++++++------------------------- 1 file changed, 91 insertions(+), 198 deletions(-) --- 2.40.1