Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8285813ybi; Thu, 6 Jun 2019 09:36:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNJMMP1tDGombzFNpqd+OgqM2OgQKU1neUkHXJF1Vc2QSyns0pdrO/D32PUyNWI4+4DIf/ X-Received: by 2002:a17:90a:d3c6:: with SMTP id d6mr719655pjw.25.1559838985120; Thu, 06 Jun 2019 09:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559838985; cv=none; d=google.com; s=arc-20160816; b=Wx6hU0nsDlYCLk1S0jt61+4D16qZ6/bLZtjzbga57WLn0OO2QOEXE4jh+BRzdW+nJa g+Iwfxu7cNHQpdscr/VVYCtKupf6Uv+hj3ztReAyZ0UAGhDIqNOOw4voYCJLqa2v43xm 095rmJDFKnwIDxjwkhm0t8KavmHLMxgAtc4md4vnD5tgvDruqsRmCrJXsPVh9MzQir3p Y0ZIssoziSjgSTNJMu7R4CqX+vZeZVTAPTOmZQYu3lslleMK9wi18D9jB+D9FqOkocXk JlcJkaG9+3JXXsgA37rXC0QWd3Ch31ANsPQSYO+Wtg7XUgoQs9sQKSGB01pAFGTAnt6q TnpA== 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; bh=e8WYzegdnY/6usewN52h86DgztLKCiFqnA9xH2MRwoU=; b=xJ6GTvKiLkynE+PsY4BWZy30IUeg0njSHVLnWd1erdM/LESpyHZstl3efdKN/JxwuG Olqq40Ue9Aqrbx/N6Xs9Yqrsy+SW91qNPtFQHb+BQbOp+eT9A2mce8JgCGMpU856up16 d5tx92nzklVIOP+ra9P8ay08PA5gHxCHi98eZt/zg3LaErZOnGaQnUp+EwAqqu61WHeP MPOnijENVkh20fhtvWpQAwBogQd6/2Xh2blrhoXYwmDgCAkWCge3eFrUJPbCO0JmJSFZ 4G5uu5GO9+yDiiZZ6JQguYc37xOnjBXIZhBCOCYpaT80OkQsAuK3s//dGHZ5J5r1Z7K3 d0Xw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i41si2289965pje.45.2019.06.06.09.36.09; Thu, 06 Jun 2019 09:36:25 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbfFFMMq (ORCPT + 99 others); Thu, 6 Jun 2019 08:12:46 -0400 Received: from mga04.intel.com ([192.55.52.120]:19764 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbfFFMMq (ORCPT ); Thu, 6 Jun 2019 08:12:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2019 05:12:45 -0700 X-ExtLoop1: 1 Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga005.fm.intel.com with ESMTP; 06 Jun 2019 05:12:39 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id E6E6C20D69; Thu, 6 Jun 2019 15:12:38 +0300 (EEST) Date: Thu, 6 Jun 2019 15:12:38 +0300 From: Sakari Ailus To: Vishal Sagar Cc: Vishal Sagar , Hyun Kwon , "laurent.pinchart@ideasonboard.com" , "mchehab@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , Michal Simek , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , "hans.verkuil@cisco.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Dinesh Kumar , Sandip Kothari , Luca Ceresoli , Jacopo Mondi Subject: Re: [PATCH v8 1/2] media: dt-bindings: media: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem Message-ID: <20190606121238.zxdvvogob3umzid4@paasikivi.fi.intel.com> References: <1559555971-193235-1-git-send-email-vishal.sagar@xilinx.com> <1559555971-193235-2-git-send-email-vishal.sagar@xilinx.com> <20190604192344.7tycwffjd3yeizxh@paasikivi.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vishal, On Thu, Jun 06, 2019 at 11:54:19AM +0000, Vishal Sagar wrote: > Hi Sakari, > > > -----Original Message----- > > From: Sakari Ailus [mailto:sakari.ailus@linux.intel.com] > > Sent: Wednesday, June 05, 2019 12:54 AM > > To: Vishal Sagar > > Cc: Hyun Kwon ; laurent.pinchart@ideasonboard.com; > > mchehab@kernel.org; robh+dt@kernel.org; mark.rutland@arm.com; Michal > > Simek ; linux-media@vger.kernel.org; > > devicetree@vger.kernel.org; hans.verkuil@cisco.com; linux-arm- > > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Dinesh Kumar > > ; Sandip Kothari ; Luca Ceresoli > > ; Jacopo Mondi > > Subject: Re: [PATCH v8 1/2] media: dt-bindings: media: xilinx: Add Xilinx MIPI > > CSI-2 Rx Subsystem > > > > EXTERNAL EMAIL > > > > Hi Vishal, > > > > On Mon, Jun 03, 2019 at 03:29:30PM +0530, Vishal Sagar wrote: > > > > > +Optional properties: > > > +-------------------- > > > +- . > > > + Without this property the driver won't be loaded as IP won't be able to > > generate > > > + media bus format compliant stream output. > > > > I think we previously concluded that the format will be just different in > > this case. So the description appears incorrect. > > > > Referring to your email https://lkml.org/lkml/2019/3/22/1823 in response to v6 patches, > if the video format bridge is not enabled, then the way in which pixels are transported on > the bus don't correspond to the existing media bus formats in Linux. > > If not loading the driver is incorrect way, is it ok for the driver to allow same media bus format > for packed and unpacked data type on the sink pad? > > Or is it ok for the driver to not validate the media bus format set on the sink pad? Taking a fresh look at the issue --- usually such unpacking is done by the DMA engine, or the same device contains both the CSI-2 RX and DMA. But here it actually affects the input of that DMA engine. You're right in saying we don't have format definitions from which you could tell which case it is, and we also don't have other pre-existing means to tell them apart. Feel free to keep the check in the driver, but we can't refer to the driver loading in DT binding documentation: this is really not supposed to be related to that driver, or even Linux at all. How about changing this to: xlnx,vfb: Present when Video Format Bridge is enabled in IP configuration. That'd be aligned with the other properties and would more accurately convey what this means. -- Kind regards, Sakari Ailus sakari.ailus@linux.intel.com