2.6.x kernels and ttyS45 for 6 serial ports ?
Quoted 3 lines
The way this device numbering seems to work is that many device names are reserved in
include/asm/serial.hfor devices like fourport/boca/hub6. Anything else (=all PCI cards?) gets a number still unassigned.
Right. Names for everything in SERIAL_PORT_DFNS get reserved. For boxes with ACPI, we don't need SERIAL_PORT_DFNS at all (assuming you build with CONFIG_SERIAL_8250_ACPI). ia64, for example, doesn't define SERIAL_PORT_DFNS, so ports just get named sequentially in the order they're discovered.
The following (untested) patch should give you the same behavior when you supply the "noisaserial" argument. Note that this probably won't work if you're using a serial console, because early serial registration will fill in the ISA ports before "noisaserial" gets parsed.
===== Documentation/kernel-parameters.txt 1.44 vs edited =====
Documentation/kernel-parameters.txt +2 -0
@@ -714,6 +714,8 @@ noisapnp [ISAPNP] Disables ISA PnP code. + noisaserial [SERIAL] Disables probing for legacy ISA serial ports. + noinitrd [RAM] Tells the kernel not to load any configured initial RAM disk.
===== drivers/serial/8250.c 1.48 vs edited =====
drivers/serial/8250.c +10 -1
@@ -117,6 +117,15 @@#define UART_NR (ARRAY_SIZE(old_serial_port) + CONFIG_SERIAL_8250_NR_UARTS) +static int __init serial_probe_isa =1 ; + +static int __init noisaserial (char *str) +{ + serial_probe_isa =0 ; +return 1 ; +} +__setup ("noisaserial" , noisaserial); +#if defined(CONFIG_SERIAL_8250_RSA ) && defined(MODULE )#define PORT_RSA_MAX 4
@@ -1836,7 +1845,7 @@static int first =1 ;int i; -if (!first) +if (!first || !serial_probe_isa)return ; first =0 ;
Quoted 3 lines · Bjorn Helgaas
Quoted 3 lines
The way this device numbering seems to work is that many device names are reserved in
include/asm/serial.hfor devices like fourport/boca/hub6. Anything else (=all PCI cards?) gets a number still unassigned.
I forgot to mention another patch along these lines:
http://www.ussg.iu.edu/hypermail/linux/kernel/0402.1/0904.html
This gives you output like this:
ttyS0 at MMIO 0xf8030000 (HCDP PCI 0000:e0:01.1, irq = 49) is a 16550A ttyS1 at MMIO 0xf8031000 (PCI 0000:e0:01.0, irq = 49) is a 16550A ttyS2 at MMIO 0xf8030010 (PCI 0000:e0:01.1, irq = 49) is a 16550A ttyS3 at MMIO 0xf8030038 (PCI 0000:e0:01.1, irq = 49) is a 16550A ttyS4 at MMIO 0xff5e0000 (ACPI SER0, irq = 67) is a 16550A
so you have a clue about what ports are on what cards. There wasn't any interest at the time, though.