public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Serial port numbering (ttyS..) wrong for 2.5.61+
@ 2003-06-01 11:14 Ruud Linders
  2003-06-01 12:48 ` Paul Rolland
  0 siblings, 1 reply; 6+ messages in thread
From: Ruud Linders @ 2003-06-01 11:14 UTC (permalink / raw)
  To: linux-kernel


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.

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.

Note that the ttyS14 port actually works so this seems only a bug in
the numbering.

Regards,
Ruud Linders


Kernel version 2.5.70
---------------------
dmesg:
======
Serial: 8250/16550 driver $Revision: 1.90 $ IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS14 at I/O 0xbc00 (irq = 21) is a 16550A     <<<<<<  14 ????
ttyS15 at I/O 0xbc08 (irq = 21) is a 16550A     <<<<<<
ttyS2 at I/O 0xbc10 (irq = 21) is a 16550A
ttyS3 at I/O 0xbc18 (irq = 21) is a 16550A

4-port PCI serial controller:
=============================
# lspci -d 10b5:1077 -v
02:0b.0 Serial controller: PLX Technology, Inc. VScom 400 4 port serial 
adaptor
(rev 02) (prog-if 00 [8250])
         Subsystem: PLX Technology, Inc. VScom 400 4 port serial adaptor
         Flags: medium devsel, IRQ 21
         Memory at de004000 (32-bit, non-prefetchable) [size=128]
         I/O ports at b800 [size=128]
         I/O ports at bc00 [size=32]
         I/O ports at c000 [size=8]
         Expansion ROM at <unassigned> [disabled] [size=2K]




^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Serial port numbering (ttyS..) wrong for 2.5.61+
@ 2003-06-02 16:21 Ruud Linders
  0 siblings, 0 replies; 6+ messages in thread
From: Ruud Linders @ 2003-06-02 16:21 UTC (permalink / raw)
  To: Paul Rolland, linux-kernel


 >>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.

 >
 >> 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.
 >
 >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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-06-03 16:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-01 11:14 Serial port numbering (ttyS..) wrong for 2.5.61+ Ruud Linders
2003-06-01 12:48 ` Paul Rolland
2003-06-02 17:51   ` Russell King
2003-06-02 18:43     ` Paul Rolland
2003-06-03 16:58       ` Ruud Linders
  -- strict thread matches above, loose matches on Subject: below --
2003-06-02 16:21 Ruud Linders

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox