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: 92929 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1qGdOR-00BkdD-8Q; Tue, 04 Jul 2023 10:36:23 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbjGDKgV (ORCPT + 1 other); 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 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,URIBL_BLOCKED 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 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