2009-03-01 12:52:28

by Daniel Mack

[permalink] [raw]
Subject: Where to put new sensor drivers?

Hi,

I wrote a driver for an I2C connected ambient light sensor and submitted
it to the linux-i2c list[1]. In the first place, I wasn't aware of
drivers/i2c/chips being deprecated and hencei, I subsequently moved it to
what seemed to match best in the current tree, drivers/hwmon. But as
Jean Delvare pointed out, this is not the place for it either because it
doesn't really monitor the hardware, which is true.

So I posted a proposal[2] patch series that adds drivers/sensors for
such cases (some of the drivers in the legacy folder drivers/i2c/chips
have the same problem than my new one has) but haven't got reply on it
yet, probably because linux-i2c is the wrong place to ask.

Maybe someone here has an oppinon about that?


Thanks,
Daniel


[1] http://article.gmane.org/gmane.linux.drivers.i2c/3148
[2] http://article.gmane.org/gmane.linux.drivers.i2c/3159


2009-03-05 15:03:49

by Daniel Mack

[permalink] [raw]
Subject: Re: Where to put new sensor drivers?

On Sun, Mar 01, 2009 at 01:41:34PM +0100, Daniel Mack wrote:
> I wrote a driver for an I2C connected ambient light sensor and submitted
> it to the linux-i2c list[1]. In the first place, I wasn't aware of
> drivers/i2c/chips being deprecated and hencei, I subsequently moved it to
> what seemed to match best in the current tree, drivers/hwmon. But as
> Jean Delvare pointed out, this is not the place for it either because it
> doesn't really monitor the hardware, which is true.
>
> So I posted a proposal[2] patch series that adds drivers/sensors for
> such cases (some of the drivers in the legacy folder drivers/i2c/chips
> have the same problem than my new one has) but haven't got reply on it
> yet, probably because linux-i2c is the wrong place to ask.

Hmm, no feedback here either? I was pointed to the 'industrial I/O'
thread[1], but that one didn't go mainline yet, and I didn't find any
reference of someone picking up this idea.

Are such drivers not wanted in the kernel? I could also move my code to
userspace, but I though if it's supported by the kernel, more people
can acutally use it easily.

Daniel

[1] http://lkml.org/lkml/2008/12/1/156

2009-03-06 18:56:26

by Pavel Machek

[permalink] [raw]
Subject: Re: Where to put new sensor drivers?

On Thu 2009-03-05 16:03:34, Daniel Mack wrote:
> On Sun, Mar 01, 2009 at 01:41:34PM +0100, Daniel Mack wrote:
> > I wrote a driver for an I2C connected ambient light sensor and submitted
> > it to the linux-i2c list[1]. In the first place, I wasn't aware of
> > drivers/i2c/chips being deprecated and hencei, I subsequently moved it to
> > what seemed to match best in the current tree, drivers/hwmon. But as
> > Jean Delvare pointed out, this is not the place for it either because it
> > doesn't really monitor the hardware, which is true.
> >
> > So I posted a proposal[2] patch series that adds drivers/sensors for
> > such cases (some of the drivers in the legacy folder drivers/i2c/chips
> > have the same problem than my new one has) but haven't got reply on it
> > yet, probably because linux-i2c is the wrong place to ask.
>
> Hmm, no feedback here either? I was pointed to the 'industrial I/O'
> thread[1], but that one didn't go mainline yet, and I didn't find any
> reference of someone picking up this idea.

Well drivers/sensors sounds sane. Or maybe drivers/senses :-).

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html