All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@jic23.retrosnub.co.uk>
To: Daniel Baluta <daniel.baluta@gmail.com>
Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>,
	linux-iio@vger.kernel.org, Daniel Baluta <daniel.baluta@nxp.com>,
	graff.yang@gmail.com, davidjulianveenstra@gmail.com
Subject: Re: Work plan to move AD2S1210 out of staging
Date: Sat, 10 Mar 2018 16:35:27 +0000	[thread overview]
Message-ID: <20180310163527.702a6668@archlinux> (raw)
In-Reply-To: <CAEnQRZCYuP5K97=6uKJsepcQz+3gP9U67kZw7M8cd=gX3Cag6A@mail.gmail.com>

On Fri, 9 Mar 2018 10:04:02 +0200
Daniel Baluta <daniel.baluta@gmail.com> wrote:

> Hi Rodrigo,
> 
> Thanks for your effort on analyzing this.
> 
> On Fri, Mar 9, 2018 at 2:52 AM, Rodrigo Siqueira
> <rodrigosiqueiramelo@gmail.com> wrote:
> > Hi,
> >
> > Today I looked at the AD2S1210 code and datasheet. As a result, I present here
> > the following work plan for discussion:
> >
> > 0) Checkpach free
> >
> > There are just two 'CHECKs' in this module. Fix it is easy.  
> 
> Great.
> 
> >
> > 1) Update the channels definition
> >
> > After a first read of the datasheet, I believe the AD2S1210 need an update to
> > the iio_chan_spec already defined and also requires another channel for
> > velocity. I am not 100% sure, but I also think that other channels have to be
> > defined because of this chip has many features (absolute position and velocity,
> > system fault detect, programmable sinusoidal, etc.); however, I prefer to keep
> > things simple now.
> >  
> 
> > 2) Events for handling error detections
> >
> > The AD2S1210 provide many fault detection thresholds. The chip triggers some
> > faults, and I believe the AD2S1210 module can handle it with events interface.
> > If I am right, I to start by adding LOS  handler.
> >
> > 3) Use IIO ABI
> >
> > From what I understood from the documentation, I believe the write using sysfs
> > interface is not right. The AD2S1210 module should use iio_info for this tasks
> > (even for read). If I am right, I want to fix it.
> >
> > Is my work plan to move AD2S1210 out of staging make sense?  
> 
> Yup. It does makes sense.
> 
> For the moment no need to add new features. We should just concentrate
> on supporting the existing functionality but with the standard IIO interface.

I second this.  New features really require hardware to test.  We
can probably assume the driver as is more or less works (presumably
test hardware was originally available).  Careful review should
prevent us breaking the driver - this isn't always true for new features
where even the most careful datasheet reading may not pick up on some
nuance.

The chip is moderately cheap and easy to get hold of.  Resolvers are
not.

I don't know if Michael or anyone else has test access to the relevant
parts.

Jonathan

> 
> >
> > Finally, I want to work on AD2S1210, but David Veenstra has priority on
> > this task because he already expressed his interest in working on
> > AD2S1210 and AD2S1200.  I proposed to him that we divided this task in
> > two: I work in the  AD2S1210 and him in the AD2S1200.
> >
> > Best regards,
> > Siqueira
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html  
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2018-03-10 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-09  0:52 Work plan to move AD2S1210 out of staging Rodrigo Siqueira
2018-03-09  8:04 ` Daniel Baluta
2018-03-10 16:35   ` Jonathan Cameron [this message]

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=20180310163527.702a6668@archlinux \
    --to=jic23@jic23.retrosnub.co.uk \
    --cc=daniel.baluta@gmail.com \
    --cc=daniel.baluta@nxp.com \
    --cc=davidjulianveenstra@gmail.com \
    --cc=graff.yang@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=rodrigosiqueiramelo@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.