public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* SH-Sci(f) driver as console
@ 2008-01-31 10:44 Kieran Bingham
  2008-01-31 10:51 ` Paul Mundt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kieran Bingham @ 2008-01-31 10:44 UTC (permalink / raw)
  To: linux-sh

I'm having problems with the sh-sci driver as a console.

The early printk code works for my board; I added the register
definitions into the sh-sci.h file.

However, When it comes to register_console for the ttySC - at that
point, the uart's havent been registered, so the console doesn't attach,
failing at the line :


static int __init serial_console_setup(struct console *co, char
*options)
{
.
.
.
/*
 * Also need to check port->type, we don't actually have any
 * UPIO_PORT ports, but uart_report_port() handily misreports
 * it anyways if we don't have a port available by the time this is
 * called.
 */

 if (!port->type)
	return -ENODEV;

.
.
.
}

 only later does uart_register_driver get called when static int __init
sci_init(void) runs.

Do I need to change something to make the call to sci_init occur earlier
in the kernel ? or should I just call register console again later on
perhaps?

Cheers
-- 
Kieran Bingham <kieranbingham@gmail.com>


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

end of thread, other threads:[~2008-01-31 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31 10:44 SH-Sci(f) driver as console Kieran Bingham
2008-01-31 10:51 ` Paul Mundt
2008-01-31 10:52 ` Paul Mundt
2008-01-31 18:09 ` Kieran Bingham
2008-01-31 23:57 ` Paul Mundt

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