From: Jonathan Cameron <jic23@kernel.org>
To: Himanshu Jha <himanshujha199640@gmail.com>
Cc: Nishad Kamdar <nishadkamdar@gmail.com>,
Slawomir Stepien <sst@poczta.fm>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Hartmut Knaack <knaack.h@gmx.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
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.
Date: Sat, 3 Nov 2018 12:39:27 +0000 [thread overview]
Message-ID: <20181103123927.339611b1@archlinux> (raw)
In-Reply-To: <20181101153508.GA5176@himanshu-Vostro-3559>
On Thu, 1 Nov 2018 21:05:09 +0530
Himanshu Jha <himanshujha199640@gmail.com> 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 <nishadkamdar@gmail.com>
> > ---
> > 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
>
>
next prev parent reply other threads:[~2018-11-03 21:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-31 15:54 [PATCH v7 0/3] staging: iio: ad2s1210: Switch to the gpio descriptor interface Nishad Kamdar
2018-10-31 15:58 ` [PATCH v7 1/3] " Nishad Kamdar
2018-11-03 12:45 ` Jonathan Cameron
2018-11-03 13:07 ` Jonathan Cameron
2018-10-31 15:59 ` [PATCH v7 2/3] staging: iio: ad2s1210: Drop the gpioin flag Nishad Kamdar
2018-11-03 12:59 ` Jonathan Cameron
2018-10-31 16:00 ` [PATCH v7 3/3] staging: iio: ad2s1210: Add device tree table Nishad Kamdar
2018-11-01 15:35 ` Himanshu Jha
2018-11-03 12:39 ` Jonathan Cameron [this message]
2018-11-03 13:04 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181103123927.339611b1@archlinux \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=himanshujha199640@gmail.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nishadkamdar@gmail.com \
--cc=pmeerw@pmeerw.net \
--cc=sst@poczta.fm \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).