public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Kieran Bingham <kieranbingham@gmail.com>
To: linux-sh@vger.kernel.org
Subject: SH-Sci(f) driver as console
Date: Thu, 31 Jan 2008 10:44:10 +0000	[thread overview]
Message-ID: <1201776250.20171.72.camel@Atlas> (raw)

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>


             reply	other threads:[~2008-01-31 10:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-31 10:44 Kieran Bingham [this message]
2008-01-31 10:51 ` SH-Sci(f) driver as console Paul Mundt
2008-01-31 10:52 ` Paul Mundt
2008-01-31 18:09 ` Kieran Bingham
2008-01-31 23:57 ` Paul Mundt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1201776250.20171.72.camel@Atlas \
    --to=kieranbingham@gmail.com \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox