]> git.baikalelectronics.ru Git - kernel.git/commit
uio: Support 2^MINOR_BITS minors
authorEric W. Biederman <ebiederm@aristanetworks.com>
Tue, 14 Sep 2010 18:38:06 +0000 (11:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:16:43 +0000 (10:16 -0700)
commit5370420b83084b0ce3c2133980d8aec8c9f62cb2
treeffa50ea8eeddd9105dff834877ed594cf71ce697
parent669b601c9e002dad3aa768a442c1266d060bd672
uio: Support 2^MINOR_BITS minors

register_chrdev limits uio devices to 256 minor numbers which causes
problems on one system I have with 384+ uio devices.  So instead set
UIO_MAX_DEVICES to the maximum number of minors and use
alloc_chrdev_region to reserve the uio minors.

The final result is that the code works the same but the uio driver now
supports any minor the idr allocator comes up with.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/uio/uio.c