David Herrmann
0e01faab56
HID: uhid: allocate static minor
...
commit 19872d20c8 upstream.
udev has this nice feature of creating "dead" /dev/<node> device-nodes if
it finds a devnode:<node> modalias. Once the node is accessed, the kernel
automatically loads the module that provides the node. However, this
requires udev to know the major:minor code to use for the node. This
feature was introduced by:
commit 578454ff7e
Author: Kay Sievers <kay.sievers@vrfy.org >
Date: Thu May 20 18:07:20 2010 +0200
driver core: add devname module aliases to allow module on-demand auto-loading
However, uhid uses dynamic minor numbers so this doesn't actually work. We
need to load uhid to know which minor it's going to use.
Hence, allocate a static minor (just like uinput does) and we're good
to go.
Reported-by: Tom Gundersen <teg@jklm.no >
Signed-off-by: David Herrmann <dh.herrmann@gmail.com >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-10-13 16:08:35 -07:00
..
2013-04-04 09:59:32 +02:00
2013-10-13 16:08:28 -07:00
2013-01-03 10:27:31 +01:00
2013-07-21 18:21:29 -07:00
2013-04-18 19:06:20 -07:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-10-13 16:08:35 -07:00
2013-01-03 10:27:31 +01:00
2013-05-06 13:07:33 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-25 11:17:31 -08:00
2013-04-24 16:32:27 +02:00
2013-10-13 16:08:35 -07:00
2013-10-01 09:17:46 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-10-01 09:17:46 -07:00
2013-10-01 09:17:46 -07:00
2013-10-01 09:17:46 -07:00
2013-10-01 09:17:46 -07:00
2013-02-21 10:45:01 +01:00
2012-09-25 15:41:02 +02:00
2013-10-01 09:17:46 -07:00
2013-10-13 16:08:28 -07:00
2013-03-01 14:14:59 +01:00
2013-04-30 10:12:44 +02:00
2013-04-29 10:16:55 +02:00
2013-01-03 10:27:31 +01:00
2013-10-01 09:17:46 -07:00
2013-09-26 17:18:16 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-09-26 17:18:16 -07:00
2013-09-26 17:18:16 -07:00
2013-10-13 16:08:28 -07:00
2013-09-26 17:18:16 -07:00
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:19:07 +02:00
2013-09-26 17:18:15 -07:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2012-06-28 10:34:01 +02:00
2012-06-28 10:34:01 +02:00
2012-06-28 10:34:01 +02:00
2013-03-14 11:50:49 +01:00
2013-03-14 11:50:49 +01:00
2013-04-08 10:33:13 +02:00
2013-04-08 10:33:13 +02:00
2012-11-12 15:30:28 +01:00
2012-11-18 22:58:28 +01:00
2013-10-13 16:08:35 -07:00
2013-03-14 11:50:49 +01:00
2012-11-12 15:30:29 +01:00
2012-11-12 15:30:29 +01:00
2013-01-03 10:27:31 +01:00
2012-10-17 10:44:47 +02:00
2012-11-12 15:30:28 +01:00
2012-11-12 15:30:28 +01:00
2012-11-05 13:17:39 +01:00
2012-07-20 09:50:42 +02:00
2013-03-14 11:50:49 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-09-26 17:18:16 -07:00
2013-02-25 13:26:41 +01:00
2013-02-21 10:45:52 +01:00
2013-09-26 17:18:16 -07:00
2013-10-01 09:17:46 -07:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:40 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-04-04 09:38:43 +02:00
2013-01-18 10:59:24 +01:00
2013-02-18 10:41:52 +01:00
2013-10-01 09:17:46 -07:00
2013-01-03 10:27:31 +01:00
2013-09-26 17:18:17 -07:00
2013-04-30 10:19:07 +02:00
2013-04-30 10:19:07 +02:00
2013-10-13 16:08:35 -07:00