From patchwork Tue Jul 4 10:40:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 699136 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 181C8EB64DD for ; Tue, 4 Jul 2023 10:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231702AbjGDKlP (ORCPT ); Tue, 4 Jul 2023 06:41:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbjGDKlJ (ORCPT ); Tue, 4 Jul 2023 06:41:09 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A300187 for ; Tue, 4 Jul 2023 03:41:08 -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 6C0E72C6; Tue, 4 Jul 2023 12:40:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688467223; bh=1csZJj28HXH61Rqg62khzP4q6rwBSCyClMb40rFAm7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XQfTAbA6PkDkeXhA2LZoQ9HXDtWlBdsMqa2O8K1rLfWZ/8aSRaOFRavGj5I0ZBosP O/tpa9mds6iotKJ2NT8JFaRAJDX03kpclpu2b6mOMeNmImMdhGfbUnpfJMo0oDzOoN ZxRMj1pTqIYh26ZOYUEesNK7GXjCSdA+OhvUWF8I= 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:40:52 +0200 Message-Id: <20230704104057.149837-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230704103611.149631-1-jacopo.mondi@ideasonboard.com> References: <20230704103611.149631-1-jacopo.mondi@ideasonboard.com> 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(-) Reviewed-by: Dave Stevenson --- 2.40.1