Re: [GIT PULL] Ambient Light Sensors subsystem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jon Smirl
Date: Thursday, March 18, 2010 - 7:34 am

On Sun, Mar 7, 2010 at 4:42 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:

Sorry for the late reply, but this is a recurring theme. Remote
controls (IR and radio) have the same problem and this was the core of
my objection to their drivers being merged.  Input devices need to
communicate their human oriented events to user space using the input
subsystem period. If you don't do this things like the xserver/apps
have to implement custom drivers for every new user event interface
that is dreamed up and that destroys backwards compatibility.

Drivers can always be split into two modules. A core module could
provide a sysfs or kernel internal interface. An add-on module can
optionally redirect events from the core module into the input
subsystem.

I'm also not a fan of having a custom interface on the sensor/input
devices that reports device specific events to user space. Then those
events are massaged by a tiny user space app and reinjected into the
input subsystem. That does work but it leads to the kernel requiring
external apps in order to function. I believe converting device
specific events to a common device protocol is the work of the device
driver.

-- 
Jon Smirl
jonsmirl@gmail.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Mon Mar 1, 12:41 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dima Zavin, (Tue Mar 2, 11:13 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jean Delvare, (Wed Mar 3, 2:34 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dima Zavin, (Wed Mar 3, 3:29 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Linus Walleij, (Wed Mar 3, 3:30 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jean Delvare, (Wed Mar 3, 4:02 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 4:10 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 4:19 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Linus Walleij, (Wed Mar 3, 6:07 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Linus Torvalds, (Wed Mar 3, 10:03 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 10:51 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dmitry Torokhov, (Wed Mar 3, 11:41 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Linus Torvalds, (Wed Mar 3, 11:52 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dmitry Torokhov, (Wed Mar 3, 12:07 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 12:20 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Manu Abraham, (Wed Mar 3, 12:29 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 12:33 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 12:45 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Manu Abraham, (Wed Mar 3, 1:08 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 1:08 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Wed Mar 3, 1:37 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dima Zavin, (Wed Mar 3, 2:38 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Linus Torvalds, (Wed Mar 3, 2:51 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Mike Chan, (Wed Mar 3, 2:56 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jean Delvare, (Wed Mar 3, 3:02 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jean Delvare, (Wed Mar 3, 3:05 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dima Zavin, (Wed Mar 3, 4:08 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jean Delvare, (Thu Mar 4, 2:22 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Thu Mar 4, 4:19 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Amit Kucheria, (Fri Mar 5, 12:38 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Fri Mar 5, 3:58 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jean Delvare, (Sun Mar 7, 5:34 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, J.I. Cameron, (Sun Mar 7, 5:57 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dmitry Torokhov, (Sun Mar 7, 1:42 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dmitry Torokhov, (Sun Mar 7, 1:49 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dima Zavin, (Sun Mar 7, 11:29 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dima Zavin, (Mon Mar 8, 2:58 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Mon Mar 8, 3:00 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jonathan Cameron, (Mon Mar 8, 3:24 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Pavel Machek, (Wed Mar 10, 1:46 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jon Smirl, (Thu Mar 18, 7:34 am)
Re: [GIT PULL] Ambient Light Sensors subsystem, Jan Engelhardt, (Sun Mar 21, 5:13 pm)
Re: [GIT PULL] Ambient Light Sensors subsystem, Dmitry Torokhov, (Sun Mar 21, 9:27 pm)