Thread (1 message) 1 message, 1 author, 2002-07-29

Re: 3 Serial issues up for discussion (was: Re: Serial core problems on embedded PPC)

From: Russell King <hidden>
Date: 2002-07-29 20:15:15
Also in: lkml

On Mon, Jul 29, 2002 at 12:46:42PM -0700, Remco Treffkorn wrote:
On Monday 29 July 2002 12:09, Dan Malek wrote:
quoted
or a mix of both.  The problems to solve are drivers fighting over minor
device numbers and assumptions about the system console.
Drivers need not fight about minor numbers. That can be simply handled:

int get_new_serial_minor()
{
    static int minor;

    return minor++;
}

Any serial driver can call this when it initializes a new uart.
Hot pluggable drivers have to hang on to their minors, and
re-use.
It's a possible solution, if we get the ability for drivers to hang
on to their minors.  However, I get the feeling that this isn't going
to happen before 2.6.

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


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help