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

From: Russell King (rmk@arm.linux.org.uk)
Date: Mon Jun 02 2003 - 12:51:18 EST


On Sun, Jun 01, 2003 at 02:48:14PM +0200, Paul Rolland wrote:
> 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.

When we add a port to the system, we try to find in order:

- a port which matches the base address
- a port which is unallocated

Probably the easiest way to stop the "ttyS14" occuring would be to
clear the port information at boot when we don't find a port.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:17 EST