Re: [PATCH] RFC: serial: core: Dynamic minor support
From: Alan Cox
Date: Tue Apr 25 2017 - 15:43:37 EST
> 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 serial drivers on an arm64 kernel today).
The patch makes sense to me - we really don't need the static minors any
more.
> This does not try to address device naming by making all serial ports be
> ttyS<value> as that would first need a better way of deterministically
> specifying serial console devices. While it would be an option to move
> to consistent serial device naming while keeping the current console
> names, having both not aligned would probably confuse everyone
> massively.
The existing ttyS being 8250 is ABI and there are lots of things that
know far too much about what each type of ttyFOO is to ever fix that.
What could certainly be done is to do what some other classes of device
do and start also registering
/dev/ttyport/bus-information/0 /1 /2 .. etc
in parallel.
Alan