Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2794251lqz; Wed, 3 Apr 2024 08:47:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNR4TqA8orACjmO3PjUo7hqcXABSdSKbHOU81dVHF+OC9O2ZFUVaoJKX5I1een1jjCa71F/+/eLBhuk62xGR5QjCGmU9Bz4t5Igx7ZcA== X-Google-Smtp-Source: AGHT+IGE0LkrnxJBVFQNVVdHsk+EkfucvbY6P9E57vkIWplKnfdNBAFWgw6YtlbT3jT6Zdx6uLd5 X-Received: by 2002:a05:6a21:3295:b0:1a7:244e:908f with SMTP id yt21-20020a056a21329500b001a7244e908fmr27152pzb.42.1712159271713; Wed, 03 Apr 2024 08:47:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712159271; cv=pass; d=google.com; s=arc-20160816; b=vh/HxzZaJbrqu07MyN9flh0q88EMY2Ra4FrNuk4BKkY0ov830by9Ed7UaNCv4LqA4W SidBc4+y8dTpGeFwii1Mcuif/7EX8CPCBejuoEL81TtccOWDR1/6UTCrqYLQoe4WicWa ESCSLtN+bkDPyB9IUxolhq3AWeAJsOmW8Z9MUMDs9dAx1sF4+XMQ9MfH8sMjvAfEkWfu lmDCo/0P5bFOhpFgHob5307c0sRP9HhOuLmniNxUFk8Ta6riwUYiPVLF+yvCQT8g6xal wvLO/SKuyxm0EO5V7mGywkFjB9prWWjcVrPD/QULpxVxVFmqaPrCme/UZy/n3tmBB1MS TYAA== 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=jcEy6JTsTNcC5WMNVRo7tFLU+IzlSrhTpLw2CHMaeGs=; fh=ng0FUFwPgHHqIHtWcUlLUSBs0e7fHIUGeuUhfcQSRgA=; b=OsUlcbb+XYOX/3Hin9W4ilAOl0g1uY8Nk+09eQDIS2g/hWvaaJSstA5BTN4TB57QwZ T0i+zGP+um1PSW2P5QP/jgG68x40iYXV4nxur7ZF7uXn8Gk7ST0jOxEXEIAwCixCD3VA tuneWwCWtRBLUiK1hsWInjejJXxMYYELzjfNu4QLdDEbmUW9EpHKgM0Z6Vz8mnRYsUR3 AbGVe+5Uqk1p1311hgWv4gP2/e8zSWI0BhCdJ+cdVki/oEVMHvRzIKzkL7EKimcxLzU+ l1xgcpyOvLsMf1oOe0VEExGA4F9vvi2G0XmuqgqOVHmstUexftLHwQ9pX3SFdMuZUaCj 442Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=QNffR63+; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-130063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130063-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q14-20020a65684e000000b005dd565d7626si13331618pgt.900.2024.04.03.08.47.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:47:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=QNffR63+; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-130063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130063-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1F4D1B2EF43 for ; Wed, 3 Apr 2024 15:15:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B1F414D285; Wed, 3 Apr 2024 15:12:53 +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="QNffR63+" Received: from mail-108-mta149.mxroute.com (mail-108-mta149.mxroute.com [136.175.108.149]) (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 30CE914C5AC for ; Wed, 3 Apr 2024 15:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.149 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157172; cv=none; b=De/7OA1Px/MzI5mnJ0GK910wflwmiXphMplFrhsTHlbE5EkKCelNylxPFQQPEUuQKEmc3eKuSeeAuonyjnTFpxGQWFwIU2RKLOExiPqa3G9Rc2/ejnBylVqTiYCPr6VAg1CiNUF3HaU51VaVILbjb/cegIeJn92hslAgOWu+FyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157172; c=relaxed/simple; bh=bRAYH9QE/cuXAqF5e9BZTvXHCvtrXC8TfkxqG8fmEiY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XcMGkj5KZbiGWbRWHv32Og4/aJs4tMOet7OMrkDhJyrf57NBbw4Elmdr03Nusx45St2ND8QCgQxHSc2q49V1SzzUTsVkcb1DYrrfQPQ8rhh2L2npfzb/JRPD/aJsSVX7EVSgZlk07zeXE8jLh3CtPQySYXZPix16hy/XHEclcQk= 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=QNffR63+; arc=none smtp.client-ip=136.175.108.149 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-mta149.mxroute.com (ZoneMTA) with ESMTPSA id 18ea48023580003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 03 Apr 2024 15:07:24 +0000 X-Zone-Loop: 861dab71d13574309d8df69b658aea0fcdf9a4b50b74 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=jcEy6JTsTNcC5WMNVRo7tFLU+IzlSrhTpLw2CHMaeGs=; b=QNffR63+U9KV4Bp06mhYIBBMoU etwMwn66lpT+pXdj1Lr9Wyf3gLYdoHTjB3s1oKEGNFUsUBSc9DFEx0X+niq34BMZ+wX9rilbhcU56 IKDtjlFja0E+uOoZbZsNXjFB8gNxy7D5VGbRBlajxT1gbkqU/dA2cZAmP+ooKUIY8jn3MaH7E3R6N LduoEiXAFT8jXUd02x6vI2PuR9FPNl6t+3hCr/L9Byy1cPTNHnwdIUABLhjx00y3EGobv7sgOfVw+ eiZqwus+B2+gJbnbqiz0e4yRjQaxlA40K2ssOLbvUzxOlb7obxFpWaeKzwr3Kfv7Ac4FNZXkbMoD2 /kY13xWQ==; 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, pavel@ucw.cz, phone-devel@vger.kernel.org, Luis Garcia Subject: [PATCH v3 04/25] media: i2c: imx258: Remove redundant I2C writes. Date: Wed, 3 Apr 2024 09:03:33 -0600 Message-ID: <20240403150355.189229-5-git@luigi311.com> In-Reply-To: <20240403150355.189229-1-git@luigi311.com> References: <20240403150355.189229-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 Signed-off-by: Luis Garcia --- 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