Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6925661ybn; Mon, 30 Sep 2019 06:06:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRo/tl7pbyFu+ngxR8KS+bGM+Jr1oc4SvTp/UYvwOCKLcNLzKUsTa86l2Ut5WVXMoOEG95 X-Received: by 2002:a50:f603:: with SMTP id c3mr19092038edn.208.1569848765602; Mon, 30 Sep 2019 06:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569848765; cv=none; d=google.com; s=arc-20160816; b=JJ4hrW6a95Yr7/jD44RlccD/mwvEcX+bifKeGJZy7cyVCrwwzdtyJebGkGIRG/ze0F ehSYhPa0yToxeEHzys1zH99M1v2REXbnwBcvJ/u+Hsn9TEZWuYL8HQ3PpGNmGGedwypR s2Ng9NqQJPFppFN/rh1mArpvr8coSFnFUXgGz7C0LSVHpCC+02d5s7/Xne/owOkKQIOb 2HjcOCSmcD/bh2z0LVnvt4s8l7K916WtHSiZaYEfT8ggFPv9TLlnVNpvIaUWXxI9nEWF CxIQmy6VQpGf366AjiTXi7ft0L+b1yugm1fwOsxREMhbrmbSW9W9uMJczt+GAjFRxEQ9 KYjA== 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=ywyPQzF2uXXgLJZ+8yfnfSCURw1sIVqz8ZL5nshCtI0=; b=SZq3eIVQOdRZGgihcvg9HbrjTGvwzFga6kGdx+g+xf8x4ZYEgVTbnn+5d3FOWboEUC h4ivZWqlFvnWd8dCuTn7zBY+pGJdjGpRN6ZbtiKJhafp4eWB1pDP7BPkN+cpTbknfYss PKR4AXKAt2o+CjXbLY/zzWHdJKBTkItIeV4G1yhga/fjV2zGEjndVEsr3Ocvudong153 Mbddz10IV5KFIBlwbFsZ52srsOr4IIiJA5/ZMrT6bWFpSuvoZ49/TyCKH9Ao++NOtMce GoTawnqYwt4ah6fAzcqKNinMsajyQC1e1XB0iyXPe4RC8MayX1T0ZKCgVeogYujX9m1c t56A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aauLvhJ2; 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 qn24si6871785ejb.200.2019.09.30.06.05.40; Mon, 30 Sep 2019 06:06:05 -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=aauLvhJ2; 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 S1731333AbfI3NFC (ORCPT + 99 others); Mon, 30 Sep 2019 09:05:02 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:43430 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731269AbfI3NEr (ORCPT ); Mon, 30 Sep 2019 09:04:47 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8UD4k4E003799; Mon, 30 Sep 2019 08:04:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569848686; bh=ywyPQzF2uXXgLJZ+8yfnfSCURw1sIVqz8ZL5nshCtI0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aauLvhJ2Wk+kphe5L1QQbsMQrynvyThdxZ1CfRjf9sFPp2rVWNuQhgi7PUoeBGqVR 7S7MNbDcV9eKdbQTwciv855Q/Qz/bcZtyPeRLKhF7ZFuSLefg/aLkzvpcMwRFk9zL1 H0IuCC/xscSf3Kau+Zvc678UJ3JD0Ls6s9RxKx1k= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8UD4ks5119232 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Sep 2019 08:04:46 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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; Mon, 30 Sep 2019 08:04:45 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE104.ent.ti.com (10.64.6.25) 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; Mon, 30 Sep 2019 08:04:45 -0500 Received: from uda0869644b.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8UD4Zim115624; Mon, 30 Sep 2019 08:04:45 -0500 From: Benoit Parrot To: Hans Verkuil , Sakari Ailus CC: , , , Benoit Parrot Subject: [Patch v5 7/8] media: i2c: ov2659: Fix missing 720p register config Date: Mon, 30 Sep 2019 08:06:43 -0500 Message-ID: <20190930130644.8704-8-bparrot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190930130644.8704-1-bparrot@ti.com> References: <20190930130644.8704-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 Acked-by: Lad, Prabhakar --- 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 80de2e35aeca..c1e2aa1f952d 100644 --- a/drivers/media/i2c/ov2659.c +++ b/drivers/media/i2c/ov2659.c @@ -411,10 +411,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