Re: [PATCH] RFC: serial: core: Dynamic minor support

2017-04-25 Thread Alan Cox
> Furthermore some other drivers rely upon the usage of a dynamic major > e.g. the tegra serial port driver. However as there is only a block of > 20 major numbers reserved for dynamic assignment that isn't going to > scale either for multiplatform kernels (I can already easily build 18 > different

Re: [PATCH] RFC: serial: core: Dynamic minor support

2017-04-20 Thread Greg Kroah-Hartman
On Thu, Apr 20, 2017 at 02:44:18PM +0200, Sjoerd Simons wrote: > On Thu, 2017-04-20 at 14:15 +0200, Greg Kroah-Hartman wrote: > > On Thu, Apr 20, 2017 at 02:03:57PM +0200, Sjoerd Simons wrote: > > > --- a/include/linux/serial_core.h > > > +++ b/include/linux/serial_core.h > > > @@ -31,6 +31,8 @@ >

Re: [PATCH] RFC: serial: core: Dynamic minor support

2017-04-20 Thread Sjoerd Simons
On Thu, 2017-04-20 at 14:15 +0200, Greg Kroah-Hartman wrote: > On Thu, Apr 20, 2017 at 02:03:57PM +0200, Sjoerd Simons wrote: > > --- a/include/linux/serial_core.h > > +++ b/include/linux/serial_core.h > > @@ -31,6 +31,8 @@ > >  #include > >  #include > >   > > +#define LOW_DENSITY_UART_MAJOR 204

Re: [PATCH] RFC: serial: core: Dynamic minor support

2017-04-20 Thread Greg Kroah-Hartman
On Thu, Apr 20, 2017 at 02:03:57PM +0200, Sjoerd Simons wrote: > diff --git a/drivers/tty/serial/serial_core.c > b/drivers/tty/serial/serial_core.c > index 3fe56894974a..37014c70dd69 100644 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@ -44,6 +44,32 @@ > *

[PATCH] RFC: serial: core: Dynamic minor support

2017-04-20 Thread Sjoerd Simons
Quite a few serial port drivers use the "Low-density serial ports" major which is rather packed. And ofcourse as time passes, things get slightly less dense. For example the SCI serial port driver has an allocation of 4 minors, but in reality it supports up to 11 ports these days. Causing it to ove