From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDE35ECE596 for ; Wed, 9 Oct 2019 12:32:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE82821835 for ; Wed, 9 Oct 2019 12:32:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="k015dyKK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731178AbfJIMcn (ORCPT ); Wed, 9 Oct 2019 08:32:43 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:43798 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbfJIMcn (ORCPT ); Wed, 9 Oct 2019 08:32:43 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x99CWbmh083932; Wed, 9 Oct 2019 07:32:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570624357; bh=XaZjzqsxGyot7zxeFeRURYCsWaQ2BuhASHwvEDXgv8Y=; h=From:To:CC:Subject:Date; b=k015dyKKFvbVmTk0K9d0NrbKsx1WVw34tsUrBKEKtljCmqHB2zsH9fmN/nCqngx1M OTCOg2JJls88z0JpUms3R6866jQ72687VyHe+bUfWkxJr+jNtUohj4skBgJhv+hrAf UJjFV85+74V2aQigAux/nf/N9koyWFCPyeAie2bU= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x99CWb6v090457 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Oct 2019 07:32:37 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 9 Oct 2019 07:32:34 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Wed, 9 Oct 2019 07:32:37 -0500 Received: from uda0869644b.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x99CWbNP081004; Wed, 9 Oct 2019 07:32:37 -0500 From: Benoit Parrot To: Sakari Ailus , Hans Verkuil CC: Jacopo Mondi , , , , Benoit Parrot Subject: [Patch v4 0/3] media: ov5640: updates Date: Wed, 9 Oct 2019 07:35:07 -0500 Message-ID: <20191009123510.19106-1-bparrot@ti.com> X-Mailer: git-send-email 2.17.1 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 This patch series is a collection of patches we have been carrying for a while. First, it adds support for PIXEL_RATE control which is used by some CSI2 receiver driver to properly set-up their DPHY. Then we fix an issue related to having extra sensor enable/disable in the register array for the 1920x1080 mode. Finally we restrict the largest resolution which should only be available at the lowest FPS. Changes since v3: - Fix a potential early pointer dereference in init_controls. Reported by Sakari. Changes since v2: - Addressed comment from Sakari and Jacopo. - Make use of the calc_pixel_rate in set_mode also - Cleaned up the pixel_rate ctrl struct - Fix the fps condition checking for the max resolution case Changes since v1: - Addressed comment from Sakari. added a function to calculate the pixel rate and remove the need to cache its value Benoit Parrot (3): media: ov5640: add PIXEL_RATE control media: ov5640: Fix 1920x1080 mode to remove extra enable/disable media: ov5640: Make 2592x1944 mode only available at 15 fps drivers/media/i2c/ov5640.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) -- 2.17.1