Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3588707pxb; Mon, 24 Jan 2022 12:57:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNcchAwoeXCEn4R3Po6prcz8ONrkl3UXZstDfir0dYaoCSIBf1zuibYA4TV7/dunTNvpmY X-Received: by 2002:a17:90a:5e0d:: with SMTP id w13mr121529pjf.235.1643057837531; Mon, 24 Jan 2022 12:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057837; cv=none; d=google.com; s=arc-20160816; b=jwq2e2jwgXR/RijPAkb82UGDWfo0m1TcmHDkqI0PvHs2aQoJFGMSpe+hQ8pi8tn7qm 4qPMo97feI//sBa4YsFt05jgGY5nPghxDetIEyygAIBBTvY8dbzd7Tt/sZEcpBFSc/NG dTm3sztscglm5qUkIJaBvioGfIYP9R1/sY+dt6TEDi5VGkFRJiY463xzZ+Bfb0T/wCrA z4IcD5BRkbN6g1YanrBrC0GpYWmmre1tvJ3oA2dUk6gBbCRl3tSElQfGCHlKIrBHZjZ8 PzkSQu1+Tzqsz3MhqZgYPxY8FXp+l1as1a6JMYP67B2i7BoelAHg52XWlj2gw9bvbaAS BoVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GUnu6b81Dig1s4UK96ZOWURwZIRO8kPhpgRnq52YaeE=; b=WfZnxlygwEJN22ApuJohlUfTHdBEvG7gYPEqNW+9wEubnim0XgmCVWBjPGAv7uydAi RiyYj6YggBmfuC6bSo+EVZNEsA0C8R6KHEUHiVc1DUZ6C95QJJGkIPCB6Tu8YqGWU/SN 2Rzp8y3G3tCIJ0SYHfUU6/j55/E4EfxpJ7r9PZBc/Xat2h5yAie8EkIN348SerddXLn8 VdKep/Q7ccOhz9POcg6ztkqWgMpEnRlgXEKFFeKaZtVnkZxO7H1uMOePAp6eyL8ItVE1 MvFl2CsW2iegYK5HkNMBSh9Jp1Ysoi+TlRaQlMJJhzqPnV8sP1bH4BZ57DxzWNl02b2c JgOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qj1PmETP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si13768733plq.346.2022.01.24.12.57.05; Mon, 24 Jan 2022 12:57:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qj1PmETP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380210AbiAXUPy (ORCPT + 99 others); Mon, 24 Jan 2022 15:15:54 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:42930 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359180AbiAXT4e (ORCPT ); Mon, 24 Jan 2022 14:56:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4A311B811F3; Mon, 24 Jan 2022 19:56:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C1E5C340E5; Mon, 24 Jan 2022 19:56:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643054192; bh=enBE6ig5rLsNPHOkyfXqmaui5X7hjG1/VviCzIM8hng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qj1PmETPHp8h/x9Drf4j5qoyau9nwuKFRdGuTs15i6YIPswnRMDNX1mKZUh927o8k AheN/DgVRL58TF/xHBh8NiUWWDf2AolgRPF9v7WFMxrxjPPMAMNe4kXauMbWnM7xfl Dw1dq6/gddMA9XtqtBftCqmbaXvIezGYoeAZ7W3Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 308/563] media: atomisp-ov2680: Fix ov2680_set_fmt() clobbering the exposure Date: Mon, 24 Jan 2022 19:41:13 +0100 Message-Id: <20220124184035.093100551@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 4492289c31364d28c2680b43b18883385a5d216c ] Now that we restore the default or last user set exposure setting on power_up() there is no need for the registers written by ov2680_set_fmt() to write to the exposure register. Not doing so fixes the exposure always being reset to the value from the res->regs array after a set_fmt(). Link: https://lore.kernel.org/linux-media/20211107171549.267583-11-hdegoede@redhat.com Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/atomisp/i2c/ov2680.h | 24 ---------------------- 1 file changed, 24 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/ov2680.h b/drivers/staging/media/atomisp/i2c/ov2680.h index 49920245e0647..cafb798a71abe 100644 --- a/drivers/staging/media/atomisp/i2c/ov2680.h +++ b/drivers/staging/media/atomisp/i2c/ov2680.h @@ -289,8 +289,6 @@ static struct ov2680_reg const ov2680_global_setting[] = { */ static struct ov2680_reg const ov2680_QCIF_30fps[] = { {0x3086, 0x01}, - {0x3501, 0x24}, - {0x3502, 0x40}, {0x370a, 0x23}, {0x3801, 0xa0}, {0x3802, 0x00}, @@ -334,8 +332,6 @@ static struct ov2680_reg const ov2680_QCIF_30fps[] = { */ static struct ov2680_reg const ov2680_CIF_30fps[] = { {0x3086, 0x01}, - {0x3501, 0x24}, - {0x3502, 0x40}, {0x370a, 0x23}, {0x3801, 0xa0}, {0x3802, 0x00}, @@ -377,8 +373,6 @@ static struct ov2680_reg const ov2680_CIF_30fps[] = { */ static struct ov2680_reg const ov2680_QVGA_30fps[] = { {0x3086, 0x01}, - {0x3501, 0x24}, - {0x3502, 0x40}, {0x370a, 0x23}, {0x3801, 0xa0}, {0x3802, 0x00}, @@ -420,8 +414,6 @@ static struct ov2680_reg const ov2680_QVGA_30fps[] = { */ static struct ov2680_reg const ov2680_656x496_30fps[] = { {0x3086, 0x01}, - {0x3501, 0x24}, - {0x3502, 0x40}, {0x370a, 0x23}, {0x3801, 0xa0}, {0x3802, 0x00}, @@ -463,8 +455,6 @@ static struct ov2680_reg const ov2680_656x496_30fps[] = { */ static struct ov2680_reg const ov2680_720x592_30fps[] = { {0x3086, 0x01}, - {0x3501, 0x26}, - {0x3502, 0x40}, {0x370a, 0x23}, {0x3801, 0x00}, // X_ADDR_START; {0x3802, 0x00}, @@ -508,8 +498,6 @@ static struct ov2680_reg const ov2680_720x592_30fps[] = { */ static struct ov2680_reg const ov2680_800x600_30fps[] = { {0x3086, 0x01}, - {0x3501, 0x26}, - {0x3502, 0x40}, {0x370a, 0x23}, {0x3801, 0x00}, {0x3802, 0x00}, @@ -551,8 +539,6 @@ static struct ov2680_reg const ov2680_800x600_30fps[] = { */ static struct ov2680_reg const ov2680_720p_30fps[] = { {0x3086, 0x00}, - {0x3501, 0x48}, - {0x3502, 0xe0}, {0x370a, 0x21}, {0x3801, 0xa0}, {0x3802, 0x00}, @@ -594,8 +580,6 @@ static struct ov2680_reg const ov2680_720p_30fps[] = { */ static struct ov2680_reg const ov2680_1296x976_30fps[] = { {0x3086, 0x00}, - {0x3501, 0x48}, - {0x3502, 0xe0}, {0x370a, 0x21}, {0x3801, 0xa0}, {0x3802, 0x00}, @@ -637,8 +621,6 @@ static struct ov2680_reg const ov2680_1296x976_30fps[] = { */ static struct ov2680_reg const ov2680_1456x1096_30fps[] = { {0x3086, 0x00}, - {0x3501, 0x48}, - {0x3502, 0xe0}, {0x370a, 0x21}, {0x3801, 0x90}, {0x3802, 0x00}, @@ -682,8 +664,6 @@ static struct ov2680_reg const ov2680_1456x1096_30fps[] = { static struct ov2680_reg const ov2680_1616x916_30fps[] = { {0x3086, 0x00}, - {0x3501, 0x48}, - {0x3502, 0xe0}, {0x370a, 0x21}, {0x3801, 0x00}, {0x3802, 0x00}, @@ -726,8 +706,6 @@ static struct ov2680_reg const ov2680_1616x916_30fps[] = { #if 0 static struct ov2680_reg const ov2680_1616x1082_30fps[] = { {0x3086, 0x00}, - {0x3501, 0x48}, - {0x3502, 0xe0}, {0x370a, 0x21}, {0x3801, 0x00}, {0x3802, 0x00}, @@ -769,8 +747,6 @@ static struct ov2680_reg const ov2680_1616x1082_30fps[] = { */ static struct ov2680_reg const ov2680_1616x1216_30fps[] = { {0x3086, 0x00}, - {0x3501, 0x48}, - {0x3502, 0xe0}, {0x370a, 0x21}, {0x3801, 0x00}, {0x3802, 0x00}, -- 2.34.1