|To:||Russell King <firstname.lastname@example.org>|
|Subject:||Re: [PATCH] serial_txx9: forcibly init the spinlock for PCI UART used as a console|
|From:||Sergei Shtylyov <email@example.com>|
|Date:||Tue, 27 Dec 2005 22:31:53 +0300|
|Cc:||Atsushi Nemoto <firstname.lastname@example.org>, email@example.com, firstname.lastname@example.org|
|References:||<43B06DB4.email@example.com> <firstname.lastname@example.org> <43B143EE.email@example.com> <firstname.lastname@example.org> <20051227184152.GA4474@flint.arm.linux.org.uk> <43B18DD2.email@example.com>|
|User-agent:||Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803|
Hello. Sergei Shtylylov wrote:
no need to pre-register all the uart ports at driver initialisation time. Consequently, there's no need to remove them all when you remove the module.
Hm, then the driver would need to keep track of which ports it has registered and which it has not...
However, it does this already in a way, via port type.
> Secondly, the upshot of this is that you only call uart_add_one_port() > when you initialise a PCI card.
Not the case as I've said; uart_add_one_port() should be called on driver startup anyway...
This should result in a cleaner implementation, and the console will not be started until you detect the PCI card.
It will still be started with the console_initcall() in this driver, if that code is not also deleted...
That doesn't matter. Driver init time uart_add_one_port() calls to register SOC UARTs will result in register_console() being called multiple times unsuccesfully anyway before we get to the PCI UART to which the console is assigned. All in all, the problem of uninit'ed PCI port spinlock will remain unless serial core is fixed (ot at least the driver). Proposed driver re-design wouldn't help as this is actually chicken-before-egg type problem -- uart_add_one_port() assumes that the console is setup beforehand, and this just can't happen in case of a PCI card.
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Re: [PATCH] serial_txx9: forcibly init the spinlock for PCI UART used as a console, Sergei Shtylylov|
|Next by Date:||Re: [PATCH] serial_txx9: forcibly init the spinlock for PCI UART used as a console, Atsushi Nemoto|
|Previous by Thread:||Re: [PATCH] serial_txx9: forcibly init the spinlock for PCI UART used as a console, Sergei Shtylylov|
|Next by Thread:||Re: [PATCH] serial_txx9: forcibly init the spinlock for PCI UART used as a console, Atsushi Nemoto|
|Indexes:||[Date] [Thread] [Top] [All Lists]|