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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C525C43334 for ; Sat, 25 Jun 2022 03:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QYH2pfkZmPFplNymMEffrd2TzxyFFxiH95I00L0DrFA=; b=dc0gERMs9lBZ3EJMN4L/z3EP0K e5w6wvns/h6tYGmwDGOWAp3MIlU8n67PMf0wGCblVaxIosTn8lg2ACJ2zVCJfeyucZR1OIkMP2yyw q9AqCIa3n5J0xs7/ospyk3UdbCtihk3xBvSxS4xhBxLuCHGl7ybmG7u9Y9rfCvJ3xVlbhXnj0o14x VmR6v+mIgfVRenLRH8otKsJcd3xFH/hP4CbOdo3XaGFIKfx5SXSsNAuJZHBn4g9qoQrYkLIzVUzmA NuuzuI9vntlUmcirQe8Fm0FdYtE6rL6O9Bq8BZqD11CodmuV/ihZQHK12mTLTjxz35k8QoQ1RSLPA C0f9Rd1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4wq1-004YHl-Eh; Sat, 25 Jun 2022 03:52:01 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4wpy-004YHI-NG for linux-rockchip@lists.infradead.org; Sat, 25 Jun 2022 03:52:00 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4EBAD3200645; Fri, 24 Jun 2022 23:51:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 24 Jun 2022 23:51:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1656129116; x=1656215516; bh=0UYs0se20f n1hNgX3GTXe/5smp/Hec7Gg7pxSV3hLN4=; b=VXE4aLK9h21b3A8oqEGyBr01MO 7daDjimWian/QjXq5qic7ndxdQPyEzDA1NM7F/HCq4kKY1n9nGs+T+BGDnhi81P4 yJHx4oaAX44qS0EMuy8CkM1eKHj7xIaqY0tLfSYrG1mT/cRH0VuKhcTPRAO0hW8T h+AtcLLWBBejE/RHt44j+t48PGrKGhGoxaM74RzB0N+Ti+bySOwqWXjd/3Of0dpU XemgaSxV/Hkp9Ukx/IOZ8xZB2UV0JKwqoBzV6i6xPXUUL1yJI+5JvUkrZZBciVSz AFB6GG7V5txU+FekkVWp1YfOI9xrFEL5JxJGTq3xlssEsaWO36wg2te28gwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656129116; x=1656215516; bh=0UYs0se20fn1hNgX3GTXe/5smp/H ec7Gg7pxSV3hLN4=; b=kwwN9VKp2ReFhQ/4O+zc9PvrV7dLeT1Srkuo9zd0i8p+ ybek6U3MREwF2TzPXF1Rfba6KelNSz9p2RCbbaphbrMgBQYkplP6+OBMPIL0jKSd a+W8CfJOEgxWr7iPi0MTleuZsKeORp3H+xActemtp9Ph1BzQZfDYgnE58QjCiXdp abzQ6/YV0JaOIuIibzAROjHGc6qzHVE3NbFbx5XzZNeQYcqhQkmOaJmnSlKnasgI D9BhyEXcAcjcF0/WmvI9yk1ZpTBAhv4GALXXJKmXjOsIVFcLokOMqe0el85fJEHN 25Dv2W5VqN+9l4KotRGmLYySm5esMvkGK5dfLjz86g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegtddgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtjeenucfhrhhomhepffgrfhhn rgcujfhirhhstghhfhgvlhguuceouggrfhhnrgesfhgrshhtmhgrihhlrdgtohhmqeenuc ggtffrrghtthgvrhhnpedvhedtledukeegveelfeeuvddujeeiteehkedvhfetkeffudej hfeftdduhedvkeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfh hrohhmpegurghfnhgrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0e894699:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Jun 2022 23:51:53 -0400 (EDT) Date: Sat, 25 Jun 2022 06:51:50 +0300 From: Dafna Hirschfeld To: Paul Elder Cc: linux-media@vger.kernel.org, Laurent Pinchart , heiko@sntech.de, jeanmichel.hautbois@ideasonboard.com, jacopo@jmondi.org, djrscally@gmail.com, helen.koike@collabora.com, linux-rockchip@lists.infradead.org Subject: Re: [PATCH 19/55] media: rkisp1: isp: Start CSI-2 receiver before ISP Message-ID: <20220625035150.wbso5x4bn7rtaxgb@guri> References: <20220614191127.3420492-1-paul.elder@ideasonboard.com> <20220614191127.3420492-20-paul.elder@ideasonboard.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220614191127.3420492-20-paul.elder@ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220624_205158_828828_FE77956A X-CRM114-Status: UNSURE ( 7.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On 15.06.2022 04:10, Paul Elder wrote: >From: Laurent Pinchart > >Make sure the ISP is ready to receive data before starting the CSI-2 >receiver by starting it first. Similarly, stop the CSI-2 receiver before >the ISP when stopping streaming. > >Signed-off-by: Laurent Pinchart Reviewed-by Dafna Hirschfeld >--- > drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c >index 5eabb321e320..0e68c8d53404 100644 >--- a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c >+++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c >@@ -771,8 +771,9 @@ static int rkisp1_isp_s_stream(struct v4l2_subdev *sd, int enable) > v4l2_subdev_call(rkisp1->active_sensor->sd, video, s_stream, > false); > >- rkisp1_isp_stop(rkisp1); > rkisp1_mipi_csi2_stop(&rkisp1->csi); >+ rkisp1_isp_stop(rkisp1); >+ > return 0; > } > >@@ -794,11 +795,13 @@ static int rkisp1_isp_s_stream(struct v4l2_subdev *sd, int enable) > if (ret) > goto mutex_unlock; > >+ rkisp1_isp_start(rkisp1); >+ > ret = rkisp1_mipi_csi2_start(&rkisp1->csi, rkisp1->active_sensor); >- if (ret) >+ if (ret) { >+ rkisp1_isp_stop(rkisp1); > goto mutex_unlock; >- >- rkisp1_isp_start(rkisp1); >+ } > > ret = v4l2_subdev_call(rkisp1->active_sensor->sd, video, s_stream, > true); >-- >2.30.2 > _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip