All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC resolvers] How to handle fault conditions..
@ 2011-05-20  9:41 Jonathan Cameron
  2011-05-20  9:41 ` [PATCH] staging:iio:resolver:ad2s1210 general driver cleanup Jonathan Cameron
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jonathan Cameron @ 2011-05-20  9:41 UTC (permalink / raw)
  To: linux-iio; +Cc: device-drivers-devel, Jonathan Cameron

Hi all,

The attached patch is a trivial bit of code cleanup to give us a clean
starting point for a discussion of suitable interface for resolvers.
(I was having a dull afternoon yesterday so thought I'd take a look
at a corner of IIO I didn't really know anything about ;)

Anyhow, we have some 'unusual' interrupt sources on these and
without knowing their use cases I'm not sure how we want to handle them.

They are:

1) LOS Loss of signal
 * A low voltage threshold applying to either quadrature signal.
 * Disconnected pin
 * Clipping is occuring.
 * config parity error occured.
2) DOS Degradation of signal
 * High voltage theshold on either signal is exceeded,
 * Missmatch between the quadrature signals by more than some threshold.
3) LOT Loss of tracking.
 * Internal error signal on the tracker is greater than some threshold.
 * Input exeeds max tracking rate.

So we kind of have:

in0_or_in1_thresh_rising, in0_or_in1_thresh_falling 

in1-in0_mag_rising

+ that loss of tracking one which is going to need a new type..
+ clipping of signal and those disconnected errors.
For this last one I wonder if we want it to go through the
event system at all, or whether we should have some out of
band sysfs attributes like the fault ones in hwmon?

Whave do people think?  No rush on this obviously, just thought
I'd get the ball rolling!

onathan Cameron (1):
  staging:iio:resolver:ad2s1210 general driver cleanup.

 drivers/staging/iio/resolver/ad2s1210.c |  856 ++++++++++++++-----------------
 1 files changed, 399 insertions(+), 457 deletions(-)

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-23 15:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-20  9:41 [RFC resolvers] How to handle fault conditions Jonathan Cameron
2011-05-20  9:41 ` [PATCH] staging:iio:resolver:ad2s1210 general driver cleanup Jonathan Cameron
2011-05-20 10:58 ` [PATCH 0/2] IIO more resolver cleanups Jonathan Cameron
2011-05-23 14:52   ` Hennerich, Michael
2011-05-23 15:35     ` Jonathan Cameron
2011-05-20 10:58 ` [PATCH 1/2] staging:iio:resolver:ad2s120x cleanup Jonathan Cameron
2011-05-20 10:58 ` [PATCH 2/2] staging:iio:resolver:ad2s90 general cleanup Jonathan Cameron

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.