[PATCH] Stop pmac_zilog from abusing 8250's device numbers.
alan at lxorguk.ukuu.org.uk
Wed Apr 4 11:36:37 EST 2007
> Using different majors for different instances of the exact same kind
> of device is really not smart. It's a serial port, and if you try
> to dress it up to be something else you run into all kinds of problems.
Disagree. There are lots of good reasons you need to know which
port/which card/which slot/which multiplexor.
There is a world of a difference between a serious serial port
application and "wtf has my console gone"
> Not the least of which is the user has to scratch his head figuring
> out what kind of chip drives his serial console, he just wants the
> first serial port and he should have a way to say just that even
> on the kernel command line.
Define "first". First by I/O order, by PCI scan order (and which type),
does ACPI come before or after ISA etc...
At the moment we sort of magic this for the PC by having hardcoded probe
order hacks by address, on the sparc by having other driver magic, on the
PPC by hardcoding some rules etc then hack the result to be ttyS0.
I've no fundamental problem with S0->console port 1, S1 -> console port 2
etc, but the general notion that type and positional information doesn't
matter is complete and utter bollocks when you try and apply it to any
serious serial setup.
More information about the Linuxppc-dev