linux-mips
[Top] [All Lists]

Re: [PATCH 1/2] MIPS: add 8250/16550 serial early printk driver

To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: Re: [PATCH 1/2] MIPS: add 8250/16550 serial early printk driver
From: Yoichi Yuasa <yuasa@linux-mips.org>
Date: Mon, 8 Feb 2010 08:52:17 +0900
Cc: yuasa@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=y390IcCrBl2sao1vDD3GLVAtIxPn+PoXa91I3hMdChI=; b=HkIejIxYj1o5tBJIQKvHq0WD1rfene00SQVcjdwMvUzXNrVCnBssfDq3ZKdQokCUZL DrEOUhaw7YFt9cR97GoVMYjOgIyEKoJmqzxYJngt1FgowdpfbTa69p+wZsORmwMXDC1n mtsUqZQqRuTk5d+6XilovxObrJJahFnN2x608=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; b=wES0GyyPRJJSFPsPZQwgr67HL7QPbzyNeiTNdbgEcQwKzrZ1zrK4HrD1aDTFuD+8vd AusPenv8Xvnt24iv2wLa4vvp3B8UnnCUUtwbA8jspD5+WL8lhddDlUSw7BoNUG1o/t6b GbqaPJhml5gArhK/IBxQ/dGV8fU4d4qCuNcrg=
In-reply-to: <20100206121622.GA8775@alpha.franken.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20100205232857.eb65967f.yuasa@linux-mips.org> <20100206121622.GA8775@alpha.franken.de>
Sender: linux-mips-bounce@linux-mips.org
On Sat, 6 Feb 2010 13:16:22 +0100
Thomas Bogendoerfer <tsbogend@alpha.franken.de> wrote:

> On Fri, Feb 05, 2010 at 11:28:57PM +0900, Yoichi Yuasa wrote:
> > Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
> > ---
> >  arch/mips/Kconfig.debug              |    8 ++++
> >  arch/mips/include/asm/setup.h        |    9 ++++
> >  arch/mips/kernel/Makefile            |    1 +
> >  arch/mips/kernel/early_printk_8250.c |   68 
> > ++++++++++++++++++++++++++++++++++
> >  4 files changed, 86 insertions(+), 0 deletions(-)
> >  create mode 100644 arch/mips/kernel/early_printk_8250.c
> > 
> > diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug
> > index 32a010d..f5d739c 100644
> > --- a/arch/mips/Kconfig.debug
> > +++ b/arch/mips/Kconfig.debug
> > @@ -20,6 +20,14 @@ config EARLY_PRINTK
> >       doesn't cooperate with an X server. You should normally say N here,
> >       unless you want to debug such a crash.
> >  
> > +config EARLY_PRINTK_8250
> > [..]
> 
> have you looked at drivers/serial/8250_early.c ?

Yes, I have.

> It looks like it
> was invented for some sort of early console on 8250 devices...

The early printk is registered at the early boot stage(in setup_arch()).

Yoichi

<Prev in Thread] Current Thread [Next in Thread>