From patchwork Wed Nov 1 12:23:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 96591 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1qyAGT-00DKJz-Df; Wed, 01 Nov 2023 12:24:09 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343652AbjKAMYF (ORCPT + 1 other); Wed, 1 Nov 2023 08:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343649AbjKAMYE (ORCPT ); Wed, 1 Nov 2023 08:24:04 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CBED11B for ; Wed, 1 Nov 2023 05:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1698841438; x=1730377438; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X+S2yfiKnOGpN1k89zgZYvRYLbxvbIGFM9AcRiryWUY=; b=MFZ86o+uuXEvMASyLzNw5j+I3v6UI5CddVt9RauFfXCQBZ20d19STb+5 TTQXk67e2EGDHM1gs++jzyGejt4D7DVVseBUT2p3TYmzJ5dBNi5GRC+xx BMrG1uQMdN1JXz2aZ2ZgkAHmdiOjkxUCqOgugt9uS9p27lscrbGf2D61r m/vpud/ZVVE73DYsJCuFoK6HIftwzN1dKj30sxI2qGXPZ8AIDy8PbLlN1 x3ZIGYwL1GXCTP+KjssQfI2Wc7QixpyYeE6Ov7pYtiEySw5vWMDPvfbcG CL7ehvzWxuIpSRooAzz0nRD/J9Ha7C/OfKGXdt/BZ9pi8o+S3OYknEFgT g==; X-IronPort-AV: E=Sophos;i="6.03,268,1694728800"; d="scan'208";a="33759523" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 01 Nov 2023 13:23:56 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 7E2E928007F; Wed, 1 Nov 2023 13:23:56 +0100 (CET) From: Alexander Stein To: Mauro Carvalho Chehab , Sakari Ailus , Manivannan Sadhasivam , Laurent Pinchart , Hans de Goede Cc: Alexander Stein , linux-media@vger.kernel.org, Alain Volmat Subject: [PATCH v2 0/2] v4l2-cci: little-endian registers Date: Wed, 1 Nov 2023 13:23:52 +0100 Message-Id: <20231101122354.270453-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,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.7 (----) X-LSpam-Report: No, score=-4.7 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no Hi, after the discussions at [1] and [2], this series adds proper support for little-endian encoded registers. Patch 1 adds the infrastructure and patch 2 fixes imx290 driver. As v6.6 was released with imx290 broken, both should be added to stable. Changes in v2: * Add proper Fixes/CC tags to both patches * Add little-endian support for cci_read() Best regards, Alexander [1] https://lore.kernel.org/linux-media/20231030173637.GA2977515@gnbcxd0016.gnb.st.com/ [2] https://lore.kernel.org/linux-media/ZUIuNDTJAN_fz3q6@kekkonen.localdomain/ Alexander Stein (2): media: v4l2-cci: Add support for little-endian encoded registers media: i2c: imx290: Properly encode registers as little-endian drivers/media/i2c/imx290.c | 42 ++++++++++++++-------------- drivers/media/v4l2-core/v4l2-cci.c | 44 ++++++++++++++++++++++++------ include/media/v4l2-cci.h | 5 ++++ 3 files changed, 62 insertions(+), 29 deletions(-) Reviewed-by: Hans de Goede