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

Russell King (rmk@arm.linux.org.uk)
Mon, 2 Jun 2003 18:51:18 +0100


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/