Skip to contentSkip to conversation

Serial port numbering (ttyS..) wrong for 2.5.61+

DISCUSSION Ruud Linders 1 participant 1 message Jun 2, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines
Quoted 5 lines

Hello,

Since I tried the 2.5 kernel versions somewhere in the 2.5.6x range, I see rather odd port naming for the extra 4 serial ports on a PCI-card.

Which driver are you using ?

See attached CONFIG_SERIAL* from my config, this is the 'standard' serial port driver.

Quoted 9 lines
Quoted 8 lines

The first two are numered as ttyS14, ttyS15 while the last two are ttyS2 and ttyS3 !
I tried to find where these numbers are coming from but couldn't really
find an obvious place in the various drivers/char/* or drivers/serial/*
files.

Quoted 8 lines

Numbering seems to be coming out of drivers/serial/core.c : uart_find_match_or_unused which is responsible for finding an unused state for the port.

However, the code there seems to be clean and I guess we should look where the state are initialized.

Paul

==============================================================

# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
CONFIG_SERIAL_8250_MULTIPORT=y
# CONFIG_SERIAL_8250_RSA is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y