]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: increase the number of devices we support
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 17:31:35 +0000 (10:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 20:34:15 +0000 (13:34 -0700)
commit74424eb1c5a0ddfd5321e82275676dd05e9e0a85
tree73e4ebe545f7b660afe800599eaf3334bf656c81
parentdf47466581dc26bc8bc3b19a309562763088e4eb
USB: serial: increase the number of devices we support

We had the limit of 255 USB to serial devices on one system for almost
15 years, with no complaints.  But now it's time to move on from these
tiny "baby" systems, and bump the number up to 512, which should last
us a few more years:
"512 is a nice number" -- Tobias Winter

Note, this is still a static value, and uses up tty core memory with
this many tty devices allocated.  Converting the driver to use
TTY_DRIVER_DYNAMIC_DEV is the next thing to do in order to remove this
limitation.

Reported-by: Tobias Winter <tobias@linuxdingsda.de>
Tested-by: Tobias Winter <tobias@linuxdingsda.de>
Reviewed-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.h