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=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 A7E20C32792 for ; Thu, 3 Oct 2019 16:28:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7495021A4C for ; Thu, 3 Oct 2019 16:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120127; bh=zrNOOP3J9vQJ0oNkHaXT6/45OGq4tm1el6rjh/+uPUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=zsuOGX4iYnPdHfr9CMnpmSy5UKMIsa/7ZYruCSjvyCHjhvYc7G8oNix1IxfSdWsF0 1KMMf3FoKrvzXqxhLSUuSo8ri5XG5wvEVMmnW+pX6o/cWrg/q7lfr5JhvY/LIeG83h NiTQxWysWuatZxMmXxj9fREgg4iTDZ2+oz0n3t1w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389851AbfJCQ2q (ORCPT ); Thu, 3 Oct 2019 12:28:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:33328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390851AbfJCQ2n (ORCPT ); Thu, 3 Oct 2019 12:28:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 354CA21783; Thu, 3 Oct 2019 16:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120122; bh=zrNOOP3J9vQJ0oNkHaXT6/45OGq4tm1el6rjh/+uPUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EOx2Lu4/rREinpN78vuKLOOvNLxP9dPLUpJ7T2yZLPUKvxbjSNbEetpNgAAtOUdT7 Q3iFP/8RNHdZxuXVVCJlg5VVREU7Kyn/iUxOOBq4WCRyoOOat7Oo2zOMcOpMc60u0J 0hE1TRc4wp5hnAQ1/mg0QCOqjxrWeCnTc37txpVA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.2 105/313] media: omap3isp: Dont set streaming state on random subdevs Date: Thu, 3 Oct 2019 17:51:23 +0200 Message-Id: <20191003154543.222372868@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154533.590915454@linuxfoundation.org> References: <20191003154533.590915454@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sakari Ailus [ Upstream commit 7ef57be07ac146e70535747797ef4aee0f06e9f9 ] The streaming state should be set to the first upstream sub-device only, not everywhere, for a sub-device driver itself knows how to best control the streaming state of its own upstream sub-devices. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/omap3isp/isp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 38849f0ba09d3..8a87f427c056e 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -719,6 +719,10 @@ static int isp_pipeline_enable(struct isp_pipeline *pipe, s_stream, mode); pipe->do_propagation = true; } + + /* Stop at the first external sub-device. */ + if (subdev->dev != isp->dev) + break; } return 0; @@ -833,6 +837,10 @@ static int isp_pipeline_disable(struct isp_pipeline *pipe) &subdev->entity); failure = -ETIMEDOUT; } + + /* Stop at the first external sub-device. */ + if (subdev->dev != isp->dev) + break; } return failure; -- 2.20.1