Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1207455pxk; Fri, 4 Sep 2020 03:42:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwovyjtYYZrYwK0H2th1IPI5G4KsM2jf3aJTZE00+ygzAODeK4Su0EbnkoYuT4OcyQHhcDb X-Received: by 2002:a05:6402:1d93:: with SMTP id dk19mr7813196edb.198.1599216166946; Fri, 04 Sep 2020 03:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599216166; cv=none; d=google.com; s=arc-20160816; b=pY7qTayNPDRvenu9pljbQZFvCxGzl71gT9WPBePjTTch6yD2nIqVoshI7O/QXIQWf7 8ouCwSeDMWRV8JXftSBe00Kk46wAex0BPTobAqCjDMZqAaPg8gUXR3UJa5ng1OrTvKb/ hA9LSiGzFqRmbS9/Wr3vjzsah/S24EHwrSBrof7zkjQ0lfdmdI4M0VPnq6/C7UdL9/h8 mOIujfpETZUVy9yuinXuFXP9V1rFwBRS7UtLZYOdOhMkqn+SGUf4AeCCxmnK9BcZfMKt O6xUGYuUM8ja22bfYx+RFZ5iZbWQzqWa2Ykz95C0ylrP0WrBZWNI9Pwr7RVQVu5++xAe HrsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6zPyFJUQ6JATebxUJYOXMZfBa/f5Hx/H3pnLB/KJ8DE=; b=P+OYJMn/pGuFG78ALGf+XAFHmtHSSq0NmgtEgbEqv+iaFtqrI/xhFVou5dR46fysrH +nXu4QqeiDHgW8GCk5V5OsrcvjNHnSD1L575Nx8QEljcZD02RwHpMjpBi7hrEtMe7tqY j/A1EE5ZQI+tvUrgXZXZ5MGtEuoy4rR46wcg9mLo5BoeHBkPp+/Zm3XNAqrJ+wc86IOP TNH+YprCkW7muPlQeCOsUdDIeQxIoWLnzroP9Ge4kGWFC5PbXgwau2UpxQCJoxN24H6R XRJ+TOmaqJQMU8PhrgXORGEZB+PCWLpEQkc4feeR+ybwRu7Un2xoX8YSZxhLrOHfuOI8 avtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk18si3672481ejb.599.2020.09.04.03.42.24; Fri, 04 Sep 2020 03:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730187AbgIDKkx (ORCPT + 99 others); Fri, 4 Sep 2020 06:40:53 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:38157 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729957AbgIDKkb (ORCPT ); Fri, 4 Sep 2020 06:40:31 -0400 X-Originating-IP: 93.34.118.233 Received: from uno.localdomain (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 7269C1C000D; Fri, 4 Sep 2020 10:40:27 +0000 (UTC) Date: Fri, 4 Sep 2020 12:44:14 +0200 From: Jacopo Mondi To: Sakari Ailus Cc: Lad Prabhakar , Steve Longerbeam , Jacopo Mondi , Laurent Pinchart , Paul , Hugues Fruchet , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar Subject: Re: [PATCH v3 1/3] media: i2c: ov5640: Enable data pins on poweron for DVP mode Message-ID: <20200904104414.ilqc2qhustefiwdx@uno.localdomain> References: <20200813171337.5540-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200813171337.5540-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200901221052.GC32646@paasikivi.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200901221052.GC32646@paasikivi.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, Sakari, On Wed, Sep 02, 2020 at 01:10:53AM +0300, Sakari Ailus wrote: > Hi Prabhakar, > > My apologies for the late reply. > > On Thu, Aug 13, 2020 at 06:13:35PM +0100, Lad Prabhakar wrote: > > During testing this sensor on iW-RainboW-G21D-Qseven platform in 8-bit DVP > > mode with rcar-vin bridge noticed the capture worked fine for the first run > > (with yavta), but for subsequent runs the bridge driver waited for the > > frame to be captured. Debugging further noticed the data lines were > > enabled/disabled in stream on/off callback and dumping the register > > contents 0x3017/0x3018 in ov5640_set_stream_dvp() reported the correct > > values, but yet frame capturing failed. > > > > To get around this issue the following actions are performed for > > parallel mode (DVP): > > 1: Keeps the sensor in software power down mode and is woken up only in > > ov5640_set_stream_dvp() callback. > > I'd suppose with s_power, the main driver would power the device off > when it's not streaming. > > > 2: Enables data lines in s_power callback > > 3: Configures HVP lines in s_power callback instead of configuring > > everytime in ov5640_set_stream_dvp(). > > 4: Disables MIPI interface. > > Could you split this into two (or even more) patches so that the first > refactors the receiver setup and another one changes how it actually works? > That way this would be quite a bit easier to review. > > While some of the above seem entirely reasonable, the changes are vast and > testing should be done on different boards to make sure things won't break. > That said, this depends on others who have the hardware. I left it as a comment during review of v2, but now more formally: For CSI-2 capture operations: Tested-by: Jacopo Mondi Thanks j > > -- > Kind regards, > > Sakari Ailus