Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp74383ybp; Thu, 3 Oct 2019 10:21:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVtA6aFA1W8+vaAGVnpsyclSajBiwiFSYy6Q2HIBpMYYXCO3TsTK3HZDe2qvKzxYCdkfEX X-Received: by 2002:a50:9402:: with SMTP id p2mr10715664eda.111.1570123290379; Thu, 03 Oct 2019 10:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570123290; cv=none; d=google.com; s=arc-20160816; b=aQ+2vrXEr8BXp3eQZrEY1StEzE+6AHNrxz+VWwhx4qnjvdckix9wZlqp9IdIx29Fh8 RxTzxCeIbyymrpq1ZfTbheilu446R5mttrkR4Gg9ywKoagNuqwif8mHuD6MduigfN4t2 INzZndfXoC+AsmObILEc4jUnJvjDpMbi1ICx65t8qvDa9jEt2ukv1sSqQEYoIygYEx9x dtUwWt+4YBTyPFCShDY2CF/OHbc06NLu3jJd1uOo/Gu1ef1pi1Qg6CCnxs4QpEh3LB0g rsHcEZf/aQ5Dph++CgXXLzFswSMQ1PoKnz1N8ojReqBDvD3utYvcOJTC2X24rGcRuXLL RWiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6R4OvE4wpKNo6menSN/swPWsv4efPS4OM/im1AipC/E=; b=gSYntqICJ5ELPuzO1/5prQdpATgXOBdqIJOvXJiD5nppOi7SP8XzOnNGsXWI2rFdqr fLcKjjgp+/3K95BkV56qrcI98zB8bgLZpUCdEkL7SSjLvKXW35VBlKF10oxJ4tLV13Q4 D4zLhZMzWDi2WDX7hBEZdfNfTBGlTkG/cB5MmOYxy/kxi36QXXka8GNcOaXEKSp8/rCN /FAbE3HNFNU6yOZPSugNxni9LhJwSKTAX40odlasxQVw6XePBSPlC9HfInzxKz32g/RM R4jv6NXHpVBHb1uEPv7Yz4vEmbW4zmymC5iYQoEO+EhA7GMSwh9LcWzxZ0PrEWaVksEc ccKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=opHqMHoG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si1957383edm.240.2019.10.03.10.21.06; Thu, 03 Oct 2019 10:21:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=opHqMHoG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389738AbfJCQTl (ORCPT + 99 others); Thu, 3 Oct 2019 12:19:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:46708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389717AbfJCQTe (ORCPT ); Thu, 3 Oct 2019 12:19:34 -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 D766B215EA; Thu, 3 Oct 2019 16:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119574; bh=3TBPpUvQrXT/SFyjnF4LAeHputJ0ewAoJYd6bGHXiIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=opHqMHoGSgcWXEjhSgyF5l8L8vYeEXV/r8CBCB4O91B+SBfvbMig/rbEhZOhRLnJn bTLl9v5CgfbGs+IO9ZyYKCtq1SNXlSI5DTFAWL+RdlQ66VSqL8gVG/6x3cQsaPoUJe JRQ8K40lqXeo5v1BwkwUZPG3WOhKfmksOpU1ntdA= 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 4.19 077/211] media: omap3isp: Dont set streaming state on random subdevs Date: Thu, 3 Oct 2019 17:52:23 +0200 Message-Id: <20191003154505.193234880@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154447.010950442@linuxfoundation.org> References: <20191003154447.010950442@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 432bc7fbedc99..addd03b517481 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -722,6 +722,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; @@ -836,6 +840,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