Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp96287lqh; Wed, 27 Mar 2024 16:18:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYyuBA5QWulVoG5r5FtCjGzkOnLTZrZ4aMTGmSSp93ceurhCNGCEOK3ebKOs74KYTkOp7ym7EsiKEg7DGGyFY8nl2VEsa5uj3uJdr9vw== X-Google-Smtp-Source: AGHT+IF6eQ6thwazzZnxK5q8GSxaFN8qC35fxAJcaK2Xxq1HR7hTg0+kR0MiQqHsdaTNh77vGIVu X-Received: by 2002:a05:6358:718:b0:17f:1ccc:e9b with SMTP id e24-20020a056358071800b0017f1ccc0e9bmr1018782rwj.2.1711581482638; Wed, 27 Mar 2024 16:18:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711581482; cv=pass; d=google.com; s=arc-20160816; b=Djsj2xmK2WXMd3NA5/yKLDm5ez/L6ueOq16G9vAYe5o/5W1wwItjmY9CeVVV3fl6jn iiINMjpv42rokIYpOEmRRhp47MzW3ng+TejGMhqGlEG1jSK8cV/jPoFHEQMNbfQ0zyL0 ketRdBVP2Mb2WQwANOuVbRSdM8OqDy1Sflggj5HJzwDEWKbdO+ye7Zp206wn5rsN6fkB 7tH5H8naf5K4IfEeKh8JZMQIZvN3uHc5USvgABFKAkrSLlzS8YmmkfR2U3jqrHGSDkeY L/IRcQNT/zKAAJbmslwKnz7CoT7Hf7zzGuU5/3XWmKHnIYVjhtgMlnmeGbsYzroGzIG3 CW5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8bhqgLzRjHq8zDgKCYHR1LOSNnMHG3H17WmIQSeJXnE=; fh=zsnVypYi1jV7NeC/3VcVRjyPykaaos/xhW4+C3vOkss=; b=fqFeRNJu8lzX5RNV7WFeZzvpyV7Rn1NrCJALq2lR5hiKfbpZhjZAtiBX3/32eAnqll qOQoVnxbBhHt6p5PcUJ2zPMbgjSefg61VDfp0BjBlQaZ/EQwmmrGTXtk2qtf5RXZxPw0 2kndjEr8/GiwblRxORLTWBk4a5PbUE14fpcex4VM39LQp6eJLjCTo8P2N1qWrpQK47h5 R2cAu21jmDD/t2ih7fH+M7F+OfMI6B+ySbzH/R1NXH1YrmOe5y+znvbph1xRZagMfH4Y hPOfLytLMy3jOgEpRHdbOUNulst7zxouXrWk8AJdWvgEIClVqlB7zMXLoRx07NV2n4XJ iXzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=nzfzHTnG; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-122147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122147-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u38-20020a634726000000b005dc8b9a9fccsi110627pga.280.2024.03.27.16.18.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 16:18:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=nzfzHTnG; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-122147-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122147-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E46929C91E for ; Wed, 27 Mar 2024 23:18:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D6B2154C06; Wed, 27 Mar 2024 23:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="nzfzHTnG" Received: from mail-108-mta9.mxroute.com (mail-108-mta9.mxroute.com [136.175.108.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E05B3433D8 for ; Wed, 27 Mar 2024 23:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711581471; cv=none; b=l2hGTZRQzzaOnxSKo+yzbeiDcH52v86PlgvQJ2YREEOCKZiKEgXh049MMiVhuNTT5q8Z774sKVaH0k1SpQH2l3V8O3ho17LZPmnjfqusp7yJWoCy03OcD/htbl8E50JNudpphyQgGxS8A8ogWE7ClVtrwKOpdvc6WBfuRJWHpoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711581471; c=relaxed/simple; bh=B4s2yCDpIKOW86tAjjQ6L/UaYF/IQ6mt7oWrgOD4HUs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sQ7sb//7YATJcwcfyD5mh6aVnsfdFBelHGPhafbxWF0yfGOVrrGIz+svYYN1Y/DpFf+Oo5HcCM+eUtjKn1q0h0sZ+F7ywgHIIyT5RexAAUWjBAYOS65frNIK74WiyhWbWkgtNHXS6EArxOMrrRVUY5ICZWTmZUYkkFcl5g6U7h4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=nzfzHTnG; arc=none smtp.client-ip=136.175.108.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta9.mxroute.com (ZoneMTA) with ESMTPSA id 18e82343dda0003bea.00f for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 27 Mar 2024 23:17:25 +0000 X-Zone-Loop: 0dadc146d60037469ca70cc2c912560875438246fb9c DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8bhqgLzRjHq8zDgKCYHR1LOSNnMHG3H17WmIQSeJXnE=; b=nzfzHTnGwT7apjCKgZJQPReuZE nxKFY0VjZI7M5lx4Qw43V+zEhgWz2pYpNQbZdgc7Rl9CoT8UCzLFa1jCESGpMA/0EmH0mV/rrAt2/ 0FpChHxYkictCF4ll7KTeOfILvl1hmvhOxxVTrOLmqjqKGIaU67ci5s4u+CVzOw5YgSTe5ciTd5Qs 3KFmi15SrfMJ7tZzDbyKLa6VHXHVB/XXwcZNG823zDZO1ypEwHIRAuOClD74C5JxvuvgGyx4tggBP /FpK5uS/4IDov8faNXw0vq9xiDP68kpTTBDn0zw+KpTaJHLyK0w2sxzkBhuEK7ZN3AkBpPY+enDqz pQz26EOw==; From: git@luigi311.com To: linux-media@vger.kernel.org Cc: dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/23] media: i2c: imx258: Remove redundant I2C writes. Date: Wed, 27 Mar 2024 17:16:50 -0600 Message-ID: <20240327231710.53188-5-git@luigi311.com> In-Reply-To: <20240327231710.53188-1-git@luigi311.com> References: <20240327231710.53188-1-git@luigi311.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: personal@luigi311.com From: Dave Stevenson Registers 0x0202 and 0x0203 are written via the control handler for V4L2_CID_EXPOSURE, so are not needed from the mode lists. Signed-off-by: Dave Stevenson Reviewed-by: Jacopo Mondi --- drivers/media/i2c/imx258.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/media/i2c/imx258.c b/drivers/media/i2c/imx258.c index 0ae4371940ca..df7ed4716762 100644 --- a/drivers/media/i2c/imx258.c +++ b/drivers/media/i2c/imx258.c @@ -237,8 +237,6 @@ static const struct imx258_reg mode_4208x3120_regs[] = { { 0x034E, 0x0C }, { 0x034F, 0x30 }, { 0x0350, 0x01 }, - { 0x0202, 0x0C }, - { 0x0203, 0x46 }, { 0x0204, 0x00 }, { 0x0205, 0x00 }, { 0x020E, 0x01 }, @@ -356,8 +354,6 @@ static const struct imx258_reg mode_2104_1560_regs[] = { { 0x034E, 0x06 }, { 0x034F, 0x18 }, { 0x0350, 0x01 }, - { 0x0202, 0x06 }, - { 0x0203, 0x2E }, { 0x0204, 0x00 }, { 0x0205, 0x00 }, { 0x020E, 0x01 }, @@ -475,8 +471,6 @@ static const struct imx258_reg mode_1048_780_regs[] = { { 0x034E, 0x03 }, { 0x034F, 0x0C }, { 0x0350, 0x01 }, - { 0x0202, 0x03 }, - { 0x0203, 0x42 }, { 0x0204, 0x00 }, { 0x0205, 0x00 }, { 0x020E, 0x01 }, -- 2.42.0