Files
kernel_amazon_mt8127-common/include/linux
David Herrmann 0e01faab56 HID: uhid: allocate static minor
commit 19872d20c890073c5207d9e02bb8f14d451a11eb 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-05-17 14:31:05 -04:00
2013-07-25 14:07:23 -07:00
2013-05-07 19:46:02 -07:00
2013-04-29 15:40:23 -04:00
2013-05-01 16:36:22 +05:30
2013-07-28 16:30:11 -07:00
2013-05-07 18:38:27 -07:00
2013-04-29 18:28:40 -07:00
2013-10-13 16:08:28 -07:00
2013-07-28 16:30:05 -07:00
2013-04-30 17:04:06 -07:00
2013-04-30 17:04:00 -07:00
2013-10-13 16:08:35 -07:00
2013-07-21 18:21:29 -07:00
2013-04-29 18:28:44 -07:00
2013-05-04 14:47:26 -04:00
2013-04-29 15:54:28 -07:00
2013-05-28 11:05:08 +02:00
2013-04-29 15:54:28 -07:00
2013-06-25 16:07:44 -07:00
2013-04-30 15:50:12 +05:30
2013-08-20 08:43:02 -07:00
2013-07-28 16:29:55 -07:00
2013-04-29 15:54:37 -07:00