From patchwork Fri Sep 27 18:47:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit Parrot X-Patchwork-Id: 11165043 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6CB8E112B for ; Fri, 27 Sep 2019 18:46:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 498402054F for ; Fri, 27 Sep 2019 18:46:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="b/LdKpUH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728241AbfI0SpR (ORCPT ); Fri, 27 Sep 2019 14:45:17 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48166 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfI0SpR (ORCPT ); Fri, 27 Sep 2019 14:45:17 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8RIjEVD068668; Fri, 27 Sep 2019 13:45:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569609914; bh=rA7FtL2+Qf+WIRNaxJA48Ma8rhf/5zjYgvZGEIMyaH0=; h=From:To:CC:Subject:Date; b=b/LdKpUHTy01PCJazGkorNpAfgS7uX1Xsnhw9QuX5jOAjMd7kSt6rbFbnJpTbzvIp ab8Jq3cDAc6MaszFJt2zilddSj2bmjyKz0UvEXH1We2qgPIhDJbHghuW11mgDHhHMU JOCc7rreKZpUAPDEFstzdBMhloiR0XeAct9QzWY4= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8RIjEvX074913 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 27 Sep 2019 13:45:14 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) 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; Fri, 27 Sep 2019 13:45:06 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE101.ent.ti.com (10.64.6.22) 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 x8RIjEVV122194; Fri, 27 Sep 2019 13:45:14 -0500 From: Benoit Parrot To: Hans Verkuil , Sakari Ailus CC: , , , Benoit Parrot Subject: [Patch v4 0/8] media: i2c: ov2659: maintenance series Date: Fri, 27 Sep 2019 13:47:14 -0500 Message-ID: <20190927184722.31989-1-bparrot@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch series is a collection of patches we have been carrying for a while. It includes a few sensor register fixes which would cause visual artifacts at lower resolution and also at 720p. Also on some board the 'powerdown' and /or 'reset' pins are not tied so we need to add support for optional gpios to handle these. Since these camera are removable on some board we also need the driver to actually fail when there is no hardware present so the driver is actually removed. Also added a patch to check and propagate errors on s_stream invocation. Finally, we update the licensing statement to use SPDX licensing. Changes since v3: - Addressed review comment from Sakari about s_ctrl i2c access whne powered off Changes since v2: - Addressed review comment from Sakari - Reworked the "media: i2c: ov2659: Add powerdown/reset gpio handling" to use pm_runtime if it is available but not to make it depend on it. - Cleaned up the gpio related calls to remove the unnecessary NULL check Changes since v1: - Addressed review comment from Prabhakar - Added support for reset-gpios - Rework the power setting to use pm_runtime instead of s_power as based on discussion with Sakari it would be the prefered method - Added a patch to reduce the number explicit include files to the minimum necessary instead of the previous kitchen sink approach Benoit Parrot (8): media: i2c: ov2659: Fix for image wrap-around in lower resolution media: i2c: ov2659: Fix sensor detection to actually fail when device is not present media: i2c: ov2659: Cleanup include file list media: i2c: ov2659: fix s_stream return value media: dt-bindings: ov2659: add powerdown/reset-gpios optional property media: i2c: ov2659: Add powerdown/reset gpio handling media: i2c: ov2659: Fix missing 720p register config media: i2c: ov2659: Switch to SPDX Licensing .../devicetree/bindings/media/i2c/ov2659.txt | 9 ++ drivers/media/i2c/Kconfig | 2 +- drivers/media/i2c/ov2659.c | 138 +++++++++++++----- 3 files changed, 112 insertions(+), 37 deletions(-)