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=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no 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 98068CA9EAF for ; Thu, 24 Oct 2019 14:16:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7144921906 for ; Thu, 24 Oct 2019 14:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405487AbfJXOQA (ORCPT ); Thu, 24 Oct 2019 10:16:00 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53012 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfJXOP7 (ORCPT ); Thu, 24 Oct 2019 10:15:59 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dafna) with ESMTPSA id 2091D2905AC From: Dafna Hirschfeld To: linux-media@vger.kernel.org Cc: dafna.hirschfeld@collabora.com, helen.koike@collabora.com, skhan@linuxfoundation.org, hverkuil@xs4all.nl, kernel@collabora.com, dafna3@gmail.com Subject: [PATCH v5 0/2] upon streaming, check that the pipeline starts with a source entity Date: Thu, 24 Oct 2019 16:15:52 +0200 Message-Id: <20191024141554.15248-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The first patch in this patchset moves the dev field of each entity struct to the common struct vimc_ent_device. The second patch fixes a crashing bug when the pipeline does not start with a source entity. Fixes from v4: - NO changes in the first patch since v4 - The function vimc_streamer_pipeline_init now gets the media_entity as parameter and I changed the while loop to "while(ent)" since this the valid behaviour: loop until the source of the pipeline. All other cases should return from the while loop with "goto err". Also, after calling v4l2_subdev_call, if 'ret' is ENOIOCTCMD then it is set to 0 to make sure that ret is 0 when no error occurred. Dafna Hirschfeld (2): media: vimc: move the dev field of each entity to vimc_ent_dev media: vimc: upon streaming, check that the pipeline starts with a source entity drivers/media/platform/vimc/vimc-capture.c | 7 +- drivers/media/platform/vimc/vimc-common.c | 10 +++ drivers/media/platform/vimc/vimc-common.h | 7 ++ drivers/media/platform/vimc/vimc-debayer.c | 15 ++--- drivers/media/platform/vimc/vimc-scaler.c | 11 ++-- drivers/media/platform/vimc/vimc-sensor.c | 5 +- drivers/media/platform/vimc/vimc-streamer.c | 73 +++++++++++++-------- 7 files changed, 78 insertions(+), 50 deletions(-) -- 2.20.1