Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp145564pxa; Fri, 31 Jul 2020 08:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgeJ7LVE2VFG5CXrBQijJDbapZhNrB96YHJtwUf7pFj6Cu68fmaFxtpzplSTZYCE7FrU/m X-Received: by 2002:aa7:da8d:: with SMTP id q13mr4376617eds.339.1596209115355; Fri, 31 Jul 2020 08:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596209115; cv=none; d=google.com; s=arc-20160816; b=c4Sxx4xGtWHyEnA7cOfCSqXG2siCDNFEbNe6EGLe8NGi27l91KM1YdefFn0qHlEC5M EGKddT6BJ8OlmKhrerE/q0qrIUGbBi++OrlfieDwXdz52fg7v7dFwTbXBbKfcpTFw9mZ USvaTSXCyQOxM9gwX4+OE2YBcvQ+HTdKSz2YHL4YD+9UNwYxdMSp6P4j8wWOLoo/rPmt z6qRpTSSoSCBTyWEk752gxa6iQbOsiKPucUuW+aW6Agz790F5zTDaAQtNP6Oit71WUtt fKlMiX8z3j9LcedhZPpe1NiyjhiMwrO5Wd8CBFyN6Huu8Df8ZcgfWFFK8H7/vSo64rKI /BcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=9qDxlcn42upfB7CT1Vy34KEzkEnGHAD86099EEMvjR4=; b=Tq6UDFJ4uMtteDMzmh76rYow9hkznu4OI/bUrkHtIMmOWznPH/74pifcXZaTnk8ZfB qrQoSLGw62PxWpZNu5P5jNauczxRy5tm6VBVlBEWSoJ7Kb8p6lZSLx4TzP1idUP0L0VX MPE47ETolALYnZgUsHrVW/VCBSfp6vaBto9BMmLJGWWHDJmzWza4jOaPVgd2ns+y/JTU Ksguwxe8HmszOQSQyYAKJFhqyB5QSiWUPTOtJWsFthLLQQROTe9R5acFXxPafAXSW9Q2 rXShRUXLESRZ8n0y+i84y5x6/I0VqgBYkaqYvWCiPkAM4RpB6WZeYuCT5AnJ8Wq8WJ8s rn7w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si5402961eji.720.2020.07.31.08.24.52; Fri, 31 Jul 2020 08:25:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732590AbgGaPX7 (ORCPT + 99 others); Fri, 31 Jul 2020 11:23:59 -0400 Received: from mga02.intel.com ([134.134.136.20]:4011 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbgGaPX7 (ORCPT ); Fri, 31 Jul 2020 11:23:59 -0400 IronPort-SDR: ieHzjBUvwhR+MmwCJ53Tj8TeGi1axH9txbeq/9/sQ3wGvWQItlj6pvngUJmyNW/vWWtuVdpVZM IQfRCuBtisrg== X-IronPort-AV: E=McAfee;i="6000,8403,9698"; a="139776760" X-IronPort-AV: E=Sophos;i="5.75,418,1589266800"; d="scan'208";a="139776760" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2020 08:23:58 -0700 IronPort-SDR: bSb6tvJsAMoUmHEgucZC11pIyRmfpRA9zMhvYeL+rzLp6S00sj16uBLvwgPPAbnNwMQJhlSFhv 8md9gp1s7X2w== X-IronPort-AV: E=Sophos;i="5.75,418,1589266800"; d="scan'208";a="321423421" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2020 08:23:56 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id 1F4F720722; Fri, 31 Jul 2020 18:23:54 +0300 (EEST) Date: Fri, 31 Jul 2020 18:23:54 +0300 From: Sakari Ailus To: Lad Prabhakar Cc: Jacopo Mondi , Mauro Carvalho Chehab , Steve Longerbeam , linux-media@vger.kernel.org, Hugues Fruchet , Laurent Pinchart , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Prabhakar Subject: Re: [PATCH 2/2] media: i2c: ov5640: Add support for BT656 mode Message-ID: <20200731152353.GS13316@paasikivi.fi.intel.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1596187487-31403-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. > > if (!ret) > sensor->streaming = enable; -- Kind regards, Sakari Ailus