Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp542372imd; Sat, 3 Nov 2018 05:40:06 -0700 (PDT) X-Google-Smtp-Source: AJdET5d2S8dddEojZpdPxAbkN7bHCw86Hmw1J0hE7qWUNe8HOTG0ECQd1Zeq5RlCx+K8ZvIij3m9 X-Received: by 2002:a17:902:7c94:: with SMTP id y20-v6mr15177290pll.218.1541248806451; Sat, 03 Nov 2018 05:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541248806; cv=none; d=google.com; s=arc-20160816; b=qOQGLi/d3z14aCv11yryaN5exrEWDszu+HMxHVKITLLONsrGPAFdd4/tcb0f25m1oA j2G1QN9d0PQDOiGX0oiumnAhdK8F4L8w60lsNzOZpgIqY4KA/WYJp1OcDv52bTeBQ+nG YIdE6JKFpqEcCOI+Ti1qoyNvFSmzgbq/bCbO+ypoWA4yUFgYCAudIVxAQdQsaiHB7RtR TZc8LhIXbnWnZ5W8T71ZCf7WxPjqRMgCJ/GYLw+zCDMqgBCvpARCOqqym/f1huD5dH9q H6zn9Y/BZ/rY4ZAzQmeHRJxfFeq4vcNYuoQHHKymGxXItKUFX2vuH8DupTYtURpxhxnd 5CCQ== 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 :dkim-signature; bh=zcAkTzOFMkKae8v2BbBUX0IIeED9F6qKDM50upPq+Cg=; b=kHAdMvoxbm47G0k17ednqs//T+O3xuFWJC4wUCyR2ux9fLeHLlsuhi21cxwMvqRwqE eaRScrlekptUvz1izdXLhHa5xHxs/YEUnrtSHxW4vkkWd5MbntbRxxxdj9Webu6qFS03 pSGT2EztVBjG4J30CHwmsYannU/pmGwUEEwGLSzSH9fVveePhi8oqpqP6ZqtpymWBnb3 yEza7NU174aC+SC2Zbk/+01f/w3fcxerfVsNqibtyrnGuTINe+vLjy8YCBB9MnpsFASZ P75dfYRrd0wAoC8L7uQJJK1ofiN2gmiVJIm8Usj/1GVzzpQECXLy7TlIZ6nhDPuU8siE 0owA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gxn+vZUk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=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.05.39.50; Sat, 03 Nov 2018 05:40:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Gxn+vZUk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728237AbeKCVuo (ORCPT + 99 others); Sat, 3 Nov 2018 17:50:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:38228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727256AbeKCVuo (ORCPT ); Sat, 3 Nov 2018 17:50:44 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1E2572082D; Sat, 3 Nov 2018 12:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541248772; bh=XbGxSqlcR9UL/VoSrkCtgrWStggiXjrBzUNa4HskOq8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Gxn+vZUkoz84alUXVdSOKceL8JQ7h615FpUR3ZO1D3KGAOCXpPPloUNAn4Sw5KC9b 3EidGw3GypkkIx6Fj09pfxPPYQ85iUA3RZGbDwOesbXgcmwV3ithBjb2JKrXXHVsQV bbcOekApc6f3yKbEBFeeni07VEmnv5mNSzy7A9Eo= Date: Sat, 3 Nov 2018 12:39:27 +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: <20181103123927.339611b1@archlinux> In-Reply-To: <20181101153508.GA5176@himanshu-Vostro-3559> References: <20181101153508.GA5176@himanshu-Vostro-3559> 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 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! Jonathan > >