Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp148990pxa; Fri, 31 Jul 2020 08:30:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL4rTR2sUIL54CQ8/rZHPZunpTgT5VZUKIcBGXmMZMXBS0aqWn+zIVQ0QLbW51eLyAVAwJ X-Received: by 2002:a50:9e8f:: with SMTP id a15mr4222244edf.59.1596209425266; Fri, 31 Jul 2020 08:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596209425; cv=none; d=google.com; s=arc-20160816; b=yHnMO+J00SGbgQgeu3LNNwPkGifXtWXsSW9asvZEPSMbMwT8Zr/XRy2sUgJ+X1eKog pwjJ4rvsp0ew8x6J0PnkKnVytp2Ahx5gBraa8lxZ86h7EKBBnO+KOAL29Ft7TEFJoWhw zTznCL5CLrs5S4SVkxAfTEfUGg2gUS/e3Bob/TUOYqRr2exEgiZ0mO60tRBoL4qIWG6k h4REg+loQJD7WCygouxm2OuGM1CDDIJH79DExqDh42n5V4J4/tJihuY6kIP5Cw63LD65 Lfh+yZooTGYmN5slj+FTsjkb+Du/t8Dt4Mx0fpA0Kn0UXGcehiO77wmF7G7Liz/Hd/UY 0G/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=90N+DizNEGS1ke1z4ysD0xy01hNFDRmhSDp55LndzYM=; b=aXGxB9f933cKBhRzkthy54YdTxjfNSFdUDbjUs+ly+syVmEMeYoFrb1ac1DtPNSFsm aTdAtvbbbDFP4Qy08nQdaABb1zEJ/EzoTMoz65laJ5hWqr+q2qfR2QFef0q0COd+9Uds uFRpqBXJl77HxDCKNeJ4O5BB1UPB/7UcDW9mX38EzCtJk64Fyzydalcnrn7V1XEe2HHV mLAXPDf8d9dkNdxbXQrxGSkKWcrBagAqMDmsY42dSkn5oxtbw0VgPbVhkRFGiVm0GrHz 3dag6wUQuZs6EGog/69lEpv4oeIVPCfzN8BrMJMV/8MbxmQjyqPxRzDnbSbTKP6tELKt 5JVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QOJVzRaN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si5517457edk.14.2020.07.31.08.29.59; Fri, 31 Jul 2020 08:30:25 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QOJVzRaN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387569AbgGaP3L (ORCPT + 99 others); Fri, 31 Jul 2020 11:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbgGaP3K (ORCPT ); Fri, 31 Jul 2020 11:29:10 -0400 Received: from mail-oo1-xc41.google.com (mail-oo1-xc41.google.com [IPv6:2607:f8b0:4864:20::c41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 500E2C061574; Fri, 31 Jul 2020 08:29:10 -0700 (PDT) Received: by mail-oo1-xc41.google.com with SMTP id k63so3120062oob.1; Fri, 31 Jul 2020 08:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=90N+DizNEGS1ke1z4ysD0xy01hNFDRmhSDp55LndzYM=; b=QOJVzRaNwMysXEWmHwMrwn59HvXe+T9rwydI40AfnEtC9gpfhfaa7DRCnUlSzQMSUM pfmoszmrhpDVi4bc3aiAEtduQTcnhXt3g4WJDlFQ8QVmExiLJ4TlS+RGvQq1S7qaCKwl ckBYPkEWZq+JfO625y7KWPbQBF/jT1CmMAwQmGA3YWUK30fZJZV4fOcgWzcxi+S10Mor /4jJ71p+gzbJVtVVKR+3ajL02mmH2sQkyDTNbO0ldVcdiR63Ctn++yrYmyVNt5igCZ3W 7fW6eqYYwbyKI1GdZO7iyHbm0DZbOtODptwGuyfHSBbxiXBrp/J7d5yFnI/rqOaH9kZO buUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=90N+DizNEGS1ke1z4ysD0xy01hNFDRmhSDp55LndzYM=; b=ODzwyW9B6PjI+qder304AZVWkeSx9qCOWXPFm81KTFEnhFGF639ULaZAWaT5/f22KF WM3qsNJKa1jd1wn9B8SnHwPJiM9/bhgjQs1rnKxVEqUuszZMX8/K5vMg6rlzNTHACdpt wFMoOBqU7eVapfpUUv+/oTNIhQAfdClLaI5sr3rjTjyNC/7cLjCbep103khPfUIsvVcK Wyao75nXX0L94X2F843CzPN6KA66ybo7oK74g4qfIbhdKMADAktnQzcNXHOZiW2fgz1U Vm7UZ8Tx+lEs2hKSDe2JWnib5nzHbWPjFnxcoewBFOkpn5AS5L1DIf3K+SkzicN8e6HK +/Eg== X-Gm-Message-State: AOAM533gVVPrIowaXKhZiZmvF2lRoR4lvRM/zy25aYOCLXYKK5U7MFBD U5aM5x0kpV3OrJx/ZIAFTJyR3Z/fjOfNFEkiivo= X-Received: by 2002:a4a:a782:: with SMTP id l2mr3555935oom.62.1596209349753; Fri, 31 Jul 2020 08:29:09 -0700 (PDT) MIME-Version: 1.0 References: <1596187487-31403-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <1596187487-31403-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200731152353.GS13316@paasikivi.fi.intel.com> In-Reply-To: <20200731152353.GS13316@paasikivi.fi.intel.com> From: "Lad, Prabhakar" Date: Fri, 31 Jul 2020 16:28:43 +0100 Message-ID: Subject: Re: [PATCH 2/2] media: i2c: ov5640: Add support for BT656 mode To: Sakari Ailus Cc: Lad Prabhakar , Jacopo Mondi , Mauro Carvalho Chehab , Steve Longerbeam , linux-media , Hugues Fruchet , Laurent Pinchart , Linux-Renesas , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sakari, Thank you for the review. On Fri, Jul 31, 2020 at 4:23 PM Sakari Ailus wrote: > > Hi Prabhakar, > > On Fri, Jul 31, 2020 at 10:24:47AM +0100, Lad Prabhakar wrote: > > @@ -2875,8 +2891,10 @@ static int ov5640_s_stream(struct v4l2_subdev *sd, int enable) > > > > if (sensor->ep.bus_type == V4L2_MBUS_CSI2_DPHY) > > ret = ov5640_set_stream_mipi(sensor, enable); > > - else > > + else if (sensor->ep.bus_type == V4L2_MBUS_PARALLEL) > > ret = ov5640_set_stream_dvp(sensor, enable); > > + else > > + ret = ov5640_set_stream_bt656(sensor, enable); > > I'd also check for the Bt.656 mode here, rather than assuming it. > Sure will do. > Could you also update the DT bindings, given that the sensor appears to > support Bt.656 as well? I believe this requires the bus-type property, too. > Aha I ignored because this wasnt updated when DVP support was added to the driver, but will do now. Cheers, Prabhakar > > > > if (!ret) > > sensor->streaming = enable; > > -- > Kind regards, > > Sakari Ailus