Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1/2] input: CMA3000 Accelerometer driver)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jonathan Cameron
Date: Monday, August 30, 2010 - 10:41 am

On 08/30/10 18:10, Felipe Balbi wrote:
I'll look into the userspace option.  Might well be a quicker option
in the near future not to mention providing a good example of using
our userspace interfaces...
Kind of an obvious point, but there are lots of sensors in these
classes that no one is ever going to use for input. Take
a high g acceleromter (anything above c.10g for this purpose)
or the sorts of IMU's IIO currently has, which are simply too
expensive / large. Or take mid to high spec ADCs.
For other uses the requirements are typically very
different and could not be added to input without major disruption.
Personally I see no problem with having two drivers in kernel for
a device assuming they are sufficiently different in purpose.

I agree we have some fragmentation here and ideally
these device might all sit on some 'uber' subsystem providing
all things to all men.  Unfortunately that would probably come with
massive complexity and at the end of the day we already
have subsystems doing a very good job of handling some classes
of device.  The intent of IIO was always to cover the ground
that is out of scope for hwmon and input.  As you have probably
seen this does indeed add a fair bit of complexity!

We're working on cleaning things up.  Large set of fixes on
linux-iio today (including a few abi fixes for
the magnetometer you mention above :)  Still if anyone wants
to speed up our move to mainline we always appreciate code review!
*looks hopeful*  I'm always happy to direct people towards the
most dubious bits or advise anyone porting a driver.  We have
a reasonable team now (thanks partly to exposure we got by
being in staging!), but more help is always good.

Jonathan
(IIO 'maintainer' in case anyone didn't guess)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] [PATCH V2 1/2] input: CMA3000 Accelerometer driver, Jonathan Cameron, (Fri May 21, 4:57 am)
Re: [RFC] [PATCH V2 1/2] input: CMA3000 Accelerometer driver, Dmitry Torokhov, (Sun Aug 29, 11:24 am)
Re: [RFC] [PATCH V2 1/2] input: CMA3000 Accelerometer driver, Dmitry Torokhov, (Sun Aug 29, 11:49 am)
Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1 ..., Jonathan Cameron, (Mon Aug 30, 10:41 am)
Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1 ..., Mohamed Ikbel Boulabiar, (Tue Aug 31, 10:24 am)
Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1 ..., Jonathan Cameron, (Tue Aug 31, 11:03 am)
Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1 ..., Jonathan Cameron, (Tue Aug 31, 11:14 am)
Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1 ..., Jonathan Cameron, (Tue Aug 31, 11:20 am)