linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove input_call_hotplug
@ 2005-01-18 14:56 Hannes Reinecke
  2005-01-18 21:30 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Hannes Reinecke @ 2005-01-18 14:56 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Vojtech Pawlik

Hi all,

the input subsystem is using call_usermodehelper directly, which breaks 
all sorts of assertions especially when using udev.
And it's definitely going to fail once someone is trying to use netlink 
messages for hotplug event delivery.

To remedy this I've implemented a new sysfs class 'input_device' which 
is a representation of 'struct input_dev'. So each device listed in 
'/proc/bus/input/devices' gets a class device associated with it.
And we'll get proper hotplug events for each input_device which can be 
handled by udev accordingly.

Drawback is that a new event type (the said 'input_device') is added, so 
that hotplug scripts and udev might need to be adapted to handle it 
properly. And each device driver needs to be touched to write something 
meaningful as the class_id. A fallback is provided, but by neccessity is 
not very informative.

Patch 1/2 implements the core changes to drivers/input/input.c
Patch 2/2 provides proper device names for input drivers.

Patches are relative to bk://kernel.bkbits.net/vojtech/input

Comments are welcome.
Please CC me directly as I'm not on this list.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@suse.de
SuSE Linux AG				S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de

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

end of thread, other threads:[~2005-01-19 22:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-18 14:56 [PATCH 0/2] Remove input_call_hotplug Hannes Reinecke
2005-01-18 21:30 ` Greg KH
2005-01-18 21:49   ` Dmitry Torokhov
2005-01-18 21:58     ` Greg KH
2005-01-18 22:20       ` Dmitry Torokhov
2005-01-19  1:31         ` Greg KH
2005-01-19 11:56           ` Hannes Reinecke
2005-01-19 14:30             ` Dmitry Torokhov
2005-01-19 21:39               ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).