
On 09/02/2018, 06:40 PM, Andreas Färber wrote:
The present ttyS devices seem an ugliness specific to the 8250 driver, and jslaby's argumentation for having them around doesn't apply to other architectures or at least I don't see why this one subsystem should allow to override any ACPI/DT-supplied configuration. Getting 8250 more in line with other serial drivers so that ttyS devices only show up after initialized (think ttyUSB) would be the most elegant solution, and I assume the number of users complaining would be as low as those complaining about NR_CPUS being higher than their respective system has.
Welcome to the legacy of ISA. You can initialize the ports only when a user tells you where they are… The longterm solution is to rewrite setserial not to use the actual /dev/ttyS, but some common single node which would create a ttyS node dynamically. My guess is nobody will ever implement this. On the top of that, I personally don't think there is a box with more than 2 legacy ports which are not defined in PNP, ACPI, DTD, or other tables (the two being at 0x2f8 and 0x3f8). But I might be mistaken. And we can indeed make the creation of the dummy nodes arch-dependent. Or even arch-or-config-dependent. thanks, -- js suse labs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org