Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3816710ybn; Fri, 27 Sep 2019 11:48:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLo7jtqQmOrQlcPVBS0cwsFsCeGjpzqqGd+JeuILlgZE8duAGDYTL7ZUT8dxofBCCZaxcv X-Received: by 2002:a50:eb03:: with SMTP id y3mr6384473edp.194.1569610108986; Fri, 27 Sep 2019 11:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569610108; cv=none; d=google.com; s=arc-20160816; b=zhGfQQVyVl6Zlgzj7IVdVApUZ9ZGKlNMLAvYDhHGS6NRZsYZOBAEFAE6axfIgaqj9+ 6BU/EUQoUxynTHgb3jQp6li2Lo3Vdoy9nJASthEjEA/W8M5PypGvmMvtU6139Cxx0F/R Naepsa0c1k5abxcBUFwut0iVXlYqClcpOCnlqptRtXD3hIakSmIiPYnXQW53m4jKfIKT 20FZIxK9dCcYubNoPz2tpyycJF5roZnXrnDuXXrEEb7RARMwL9v17j87IIFsO6T66+Bi /2TcPYLZKb9iPqmMgahxxvzkMLY201BL02OQ3I2jszB4kEkrscFAH0R0TF/HRBUFEQGT n4Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=QA23u89orbLC4ILVuQcopRIFO/Ng7BmcoxQn5L2pmGk=; b=Rw1t/8S9UCdUzN3B0Y3+S2aN8Y2c0P1OIgh49g3l9MhnrnspWawjTTMx/tsVEYizA2 XzzNc6DsjWQw+dWUCxAZm9iWaGHvPehTzbzMJ10Q991Bd4xs6TSRCu9OP0LXyYR9PD9+ TNwcUyvBJo8WK2syCkqBxYTxHV7hx9Cl6GSOOCbfwbS4pK/8BAGl6+JhAgXoUuZzLKe8 xkCtwauyDX4YJi8HYTxHbuA8bJ0ljU67hUWTcVYFmpvgYs6+kdHvgm0U3U8gDHjItu0z 8oZmBu295o0ctTC5G6O6DAT2pw0i88Oi9sTMMEUFlkaUh/gP2YD+xxGWLNLVAffvxttZ nQVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aJ339dqA; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rk14si3093360ejb.24.2019.09.27.11.48.04; Fri, 27 Sep 2019 11:48:28 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=aJ339dqA; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728616AbfI0Spc (ORCPT + 99 others); Fri, 27 Sep 2019 14:45:32 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48172 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728275AbfI0SpX (ORCPT ); Fri, 27 Sep 2019 14:45:23 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8RIjMmN068743; Fri, 27 Sep 2019 13:45:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569609922; bh=QA23u89orbLC4ILVuQcopRIFO/Ng7BmcoxQn5L2pmGk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aJ339dqA4zwRmKhVahauu6YMk+hn02+CZ04c3/ky2SU3vtVSJT0IWnJ/k98MqPaIX qPN57K+Yd+SAXayzzB2B1BRZruAT6mB4Y8GDvI4ep8R4i2xZzW5PSuTa49ykND02ne /fxX+SR15WtHkS0D5zTb81UWhfkoe9Q3thQ78pYQ= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8RIjMt8122309; Fri, 27 Sep 2019 13:45:22 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 27 Sep 2019 13:45:22 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 27 Sep 2019 13:45:14 -0500 Received: from uda0869644b.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8RIjEVc122194; Fri, 27 Sep 2019 13:45:22 -0500 From: Benoit Parrot To: Hans Verkuil , Sakari Ailus CC: , , , Benoit Parrot Subject: [Patch v4 7/8] media: i2c: ov2659: Fix missing 720p register config Date: Fri, 27 Sep 2019 13:47:21 -0500 Message-ID: <20190927184722.31989-8-bparrot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927184722.31989-1-bparrot@ti.com> References: <20190927184722.31989-1-bparrot@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 7d0baa386644..720310e0725d 100644 --- a/drivers/media/i2c/ov2659.c +++ b/drivers/media/i2c/ov2659.c @@ -412,10 +412,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.17.1