From: Yan Burman <burman.yan@gmail.com>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Shem Multinymous <multinymous@gmail.com>,
hdaps-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org,
Pavel Machek <pavel@ucw.cz>
Subject: Re: [Hdaps-devel] [PATCH 2.6.23-rc2] hwmon: HP Mobile Data Protection System 3D ACPI driver (resend)
Date: Mon, 10 Sep 2007 22:18:08 +0200 [thread overview]
Message-ID: <46E5A680.9020706@gmail.com> (raw)
In-Reply-To: <20070830164132.GA21023@khazad-dum.debian.net>
Henrique de Moraes Holschuh wrote:
> On Thu, 30 Aug 2007, Yan Burman wrote:
>
>>>> You can generate events on input devices, but I am not sure that's the
>>>> best way to go about it for this. Things that block on read until an
>>>> interrupt happens might work better.
>>>>
>>> You can do the latter via another (4th) input device.
>>>
>>>
>> What's wrong with the stuff I did in mdps? a misc character device that
>> acts like /dev/rtc. Why does it have to be input device oriented?
>>
>
> I am fine with a char device that acts like /dev/rtc, but if we are doing
> something as heavyweight as a char device, I'd rather we go full generic
> netlink and send the various events over it. We'd have a netlink device
> that sends everything over various "channels" and just one input device that
> does joystick emulation, then.
>
> Can we use a simple sysfs attribute that blocks the caller on write and
> returns immediately on read? If it has to be more complicated than that, I'd
> rather we go the netlink path. Any other ideas that are not a char device,
> not a netlink socket, not an input device node, and not a sysfs attribute?
>
>
But, how are you going to make the sysfs attribute look generic so that
application will not have to know whether to go
to /sys/.../mdps /sys/.../hdaps/ or /sys/.../whatever?
I'd probably prefer netlink, since this way it's something more generic
and if some more functionality is added, you don't need to start
adding more sysfs attributes.
Sorry it took me a while to respond - I was too busy lately.
>> I also looked at what you did in the patches as well as the modified
>> hdapsd. I'm doing the raw input device right now in the mdps, but I have a
>> suggestion.
>>
>> It seems to me that right now there are at least 3 drivers that provide the
>> same functionality - hdaps, ams and mdps. Why not create the input device
>> that exports raw accelerometer data with a name that is generic - something
>> like accel/input or something along those lines. This way hdapsd could work
>> with any driver that provides the functionality without being hdaps
>> specific.
>>
>
> THAT is the idea, IMO. But the naming is userspace's problem (thorugh
> udev), not ours :-)
>
> Or do you mean the "hardware port" part of the input device? If so, yes, we
> should try to make standard names for those as that makes it easier for
> userspace.
>
>
next prev parent reply other threads:[~2007-09-10 19:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-11 11:26 [PATCH 2.6.23-rc2] hwmon: HP Mobile Data Protection System 3D ACPI driver (resend) Yan Burman
2007-08-11 17:14 ` Henrique de Moraes Holschuh
2007-08-25 10:25 ` Pavel Machek
2007-08-25 11:36 ` Yan Burman
2007-08-27 8:28 ` Pavel Machek
2007-08-27 17:11 ` Henrique de Moraes Holschuh
2007-08-29 17:05 ` Yan Burman
2007-08-29 23:30 ` [Hdaps-devel] " Henrique de Moraes Holschuh
2007-08-30 0:31 ` Shem Multinymous
2007-08-30 12:42 ` Henrique de Moraes Holschuh
2007-08-30 15:44 ` Yan Burman
2007-08-30 16:41 ` Henrique de Moraes Holschuh
2007-08-30 19:39 ` Kay Sievers
2007-09-10 20:18 ` Yan Burman [this message]
2007-09-10 22:55 ` Henrique de Moraes Holschuh
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=46E5A680.9020706@gmail.com \
--to=burman.yan@gmail.com \
--cc=hdaps-devel@lists.sourceforge.net \
--cc=hmh@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=multinymous@gmail.com \
--cc=pavel@ucw.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox