Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp564696imd; Sat, 3 Nov 2018 06:04:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5d87kfXstIeOfLosvdA2MyXgozccjJ1hA2C2PqJgr1rA2Tm4GEWQUWybr5nc3748Ojda3RL X-Received: by 2002:a63:91c1:: with SMTP id l184mr11511454pge.29.1541250290898; Sat, 03 Nov 2018 06:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541250290; cv=none; d=google.com; s=arc-20160816; b=mgjXwevBmoNHlvNO6WkPWxBDcXuhss1y5IZXXhuqevWbWDoMl1b3rxr14TpSRoYh56 YI+flzjiSqCvVQIlGJ5vHBRTb/IdEv1mFaulYaSqTBcJigk66ox2XJjmQgVMQ9eHsjhG S2Tc2+FkaN14SLsZe7nQ/c0UBAVZB0Ub4mCxbLpDqdGnpjJ/eVBSDwI/IFlZokiomLDU GuY8M1R+R/ILurP/bE9AJahTNd+ffnnj8TdswfWtQEBP1g3gyEqStUPGzZqIVwQZN/Kf g5xPNK9Z0dbozVLPAfP7LRqGiAnjqLpWjufprtkUV/p7Z+v3wuRuLLRt6ourlpj61pAZ zShQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ak3asLTdq0wOBV33Y9Yf9wjRJrNPTd7MEzKTSPxmuyU=; b=PD2omPMuxD+JnUPh05S8JYrazR+uXOQM05yksAQeVpifvKiigybcMwBfV4CaMVunR0 OqnpoH2gP5LmQQXZA5h8B187qrhlkTkP8Ll+VIQRHUVYXDxt+VsP+aSBVjgiQafLbjmi ZK8hsRSibwZMSCAuYKS9qAQHH6D1wZirYy7ZY0l6ol2JrFQ0GXGWFl6SubGtgrHH7j+R bgYYJ4bPBza8NbT6AwUFl9Xec9Kwg8qNwEDP7YFmHOee+N4AgmuFWkvCnT65hjdY9tZd jhMlSSrpKurxOOFG0YeXnimqg27HtPbgmW4xkB4cb46ZVtl+QqvAD9da6yfAMAkmdqOF NM/w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z66-v6si2865420pfb.104.2018.11.03.06.04.35; Sat, 03 Nov 2018 06:04:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728508AbeKCWPb (ORCPT + 99 others); Sat, 3 Nov 2018 18:15:31 -0400 Received: from saturn.retrosnub.co.uk ([46.235.226.198]:56264 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbeKCWPb (ORCPT ); Sat, 3 Nov 2018 18:15:31 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id 8A8EB9E7499; Sat, 3 Nov 2018 13:04:12 +0000 (GMT) Date: Sat, 3 Nov 2018 13:04:10 +0000 From: Jonathan Cameron To: Himanshu Jha Cc: Nishad Kamdar , Slawomir Stepien , Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 3/3] staging: iio: ad2s1210: Add device tree table. Message-ID: <20181103130410.28b54311@archlinux> In-Reply-To: <20181103123927.339611b1@archlinux> References: <20181101153508.GA5176@himanshu-Vostro-3559> <20181103123927.339611b1@archlinux> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Nov 2018 12:39:27 +0000 Jonathan Cameron wrote: > On Thu, 1 Nov 2018 21:05:09 +0530 > Himanshu Jha wrote: > > > On Wed, Oct 31, 2018 at 09:30:36PM +0530, Nishad Kamdar wrote: > > > Add device tree table for matching vendor ID. > > > > > > Signed-off-by: Nishad Kamdar > > > --- > > > drivers/staging/iio/resolver/ad2s1210.c | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > > > > > diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c > > > index d3e7d5aad2c8..7c50def91a2b 100644 > > > --- a/drivers/staging/iio/resolver/ad2s1210.c > > > +++ b/drivers/staging/iio/resolver/ad2s1210.c > > > @@ -701,6 +701,12 @@ static int ad2s1210_remove(struct spi_device *spi) > > > return 0; > > > } > > > > > > +static const struct of_device_id ad2s1210_of_match[] = { > > > + { .compatible = "adi,ad2s1210", }, > > > + { } > > > +}; > > > +MODULE_DEVICE_TABLE(of, ad2s1210_of_match); > > > > I believe this needs to be documented at: > > > > Documentation/devicetree/bindings/iio/resolver/ad2s1210.txt > > > > Cc'ed to devictree list + Rob(DT Maintainer). > > > > Just wondering why didn't it came up till now from the IIO reviewers ? v7!! > > Because in staging drivers graduations we often hold off doing the > dt-bindings document until we have full visibility of where we are going. > > A lot of them have dodgy DT bindings (and that might even be the reason > they are in staging). What we don't want is to have a doc for a silly > binding in the 'official' list as we'll have to support it for ever. > > It needs documenting before moving out staging, but not necessarily now. > Particularly as this device is complex and has a 'lot' of other stuff > that isn't currently supported and quite possibly never will be. > Some of that would have non obvious dt bindings if we did support it. > For example we 'might' route the encoder outputs round to the inputs > of a counter driver and end up with a complex entity representing > the facilities that both fo them provide. > > Agreed, the DT binding doc needs to come soon and before the move out > staging, but I am quite happy with it being in the next series. > > A line in the description to that effect would have been useful of > course! > Applied, with a line on the intent to document once driver is cleaned up added. Thanks, Jonathan > Jonathan > > > > > >