Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13476861ybl; Sun, 29 Dec 2019 12:50:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxbkN47fEkSK+WPxnQUwxiwmkVYQxmFpwXx8jN65cwZQY3Aa/vrMmoa3jYSS7Y9tOgPWwtR X-Received: by 2002:a9d:10d:: with SMTP id 13mr66948746otu.149.1577652634749; Sun, 29 Dec 2019 12:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652634; cv=none; d=google.com; s=arc-20160816; b=SuFv2C9/6TcCeRV0Lqh/4AXbDqs1wVYUlMoDPqAj3+I51Q+ljlZABw1wqFKetq7cPV TNO2tUaPEMqC0xm89YxVaMtLrj3menwfH0p8atDDJGmbNY4XpWsqIOnhPHDKDx2jCH/o r3gGXaqxn/+Kj9737wBOi23ZosfYRBG9YdVJKQ2htGKD3Yqxk+fbD179hEuHbz665Iit DZGv79HNWe2d2ds7OaYMhxyrrnQrbHbLm9aHiE7VX7Md+sZ12cSAfNV5MDZF+pXQ42pE hJs8J4TLJHXQfMevPn5A41jDirVKAE7AtSYsT8KAiNmrk0aKAIk6Uejzj/Fms0dsX1bk ncTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4Oj2AUURW6x0JGB2VV9XPq4ksJi9takhkBjn/yAJHe0=; b=Cyr0OIHlh1hTHuvBQmrVb7n3QPdCwDNWzxfWJFXOwxX+Z3V0hGZmmxDlGrGRj7SoXy 3TaaDxeCcAZ8gKOR4FTd1p9mkWijxWAcXGh6ujRLvEtwMZl45gvHLJ9vHNXqEpWsp2Zn pdNaNftDrWReLDTzdKB0hMtsrUyx3qpVi8cnM6q76fKKuso9YhJbE+TvorzHSHAcUZT7 pMmWjW605QLeku5Pz8AfPQi1u4mMLY5JrhR42rywQexUD2VKWbjzAIXFvX7pQCS5lXiS ADpMCSbKw1PIdW+x0Ux7ZavcLYfK2aBFvUT2yRtgjbjUYIKuQnUz5+XHjqf4/ZihGFJ1 ovFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IZBtcKr5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94si24165009ott.8.2019.12.29.12.50.23; Sun, 29 Dec 2019 12:50:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IZBtcKr5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733245AbfL2SCu (ORCPT + 99 others); Sun, 29 Dec 2019 13:02:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:54496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387725AbfL2SCq (ORCPT ); Sun, 29 Dec 2019 13:02:46 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4EF95222C4; Sun, 29 Dec 2019 18:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577642565; bh=P61QWLWfS4hyBBBw0N+MpWxMOTCStmytRmlp+EWR2Ys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IZBtcKr5Dz1gVU+nP8kLgMfivhs6a8V6dgersW2C2fUfCYA3z/TM2QPG3ODXN+Zlc 2K7cwIV/LoiwL5I6+LC99MY/vKCi24SHzBh6SFY4qqphjrezboKFZtICoU/MhLfrQT Gv9IFhybohMFh9o7Xx61kmxJ/a29sRKzV+MmUvgs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benoit Parrot , "Lad, Prabhakar" , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 083/434] media: i2c: ov2659: Fix missing 720p register config Date: Sun, 29 Dec 2019 18:22:16 +0100 Message-Id: <20191229172707.062745653@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Benoit Parrot [ Upstream commit 9d669fbfca20e6035ead814e55d9ef1a6b500540 ] The initial registers sequence is only loaded at probe time. Afterward only the resolution and format specific register are modified. Care must be taken to make sure registers modified by one resolution setting are reverted back when another resolution is programmed. This was not done properly for the 720p case. Signed-off-by: Benoit Parrot Acked-by: Lad, Prabhakar Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ov2659.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/i2c/ov2659.c b/drivers/media/i2c/ov2659.c index 70bf63b9dbd0..e1ff38009cf0 100644 --- a/drivers/media/i2c/ov2659.c +++ b/drivers/media/i2c/ov2659.c @@ -419,10 +419,14 @@ static struct sensor_register ov2659_720p[] = { { REG_TIMING_YINC, 0x11 }, { REG_TIMING_VERT_FORMAT, 0x80 }, { REG_TIMING_HORIZ_FORMAT, 0x00 }, + { 0x370a, 0x12 }, { 0x3a03, 0xe8 }, { 0x3a09, 0x6f }, { 0x3a0b, 0x5d }, { 0x3a15, 0x9a }, + { REG_VFIFO_READ_START_H, 0x00 }, + { REG_VFIFO_READ_START_L, 0x80 }, + { REG_ISP_CTRL02, 0x00 }, { REG_NULL, 0x00 }, }; -- 2.20.1