linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* console vs earlycon ?
@ 2015-10-21  8:21 Masahiro Yamada
  2015-10-21  8:57 ` Arnd Bergmann
  2015-10-21 13:20 ` Peter Hurley
  0 siblings, 2 replies; 14+ messages in thread
From: Masahiro Yamada @ 2015-10-21  8:21 UTC (permalink / raw)
  To: linux-arm-kernel

Hi.




I think there are three places where console could be enabled.

[1] earlycon

Each driver entry is declared with
EARLYCON_DECLARE()  or OF_EARLYCON_DECLARE()



[2] console_init()

Each entry is declared with  console_initcall()



[3]  when driver is probed
The console is usually enabled at this point
unless some special treatment is done.




My question is about [2].

I am using 8250-ish UART device.


I noticed univ8250_console_match() and univ8250_console_setup()
always fail at the point of [2] unless early_serial_setup() has been
called in advance;
however, it looks like early_serial_setup() is only used for old platforms.

So, console cannot be enabled at [2] for modern platforms.


My questions are:

 -  Given that earlycon can be now available for major architectures such ARM,
     [2] will be deprecated at some point in the future?

 - I am implementing  earlycon  for my own UART driver.
   Is it meaningless to implement  console_initcall()  as well as earlycon?



-- 
Best Regards
Masahiro Yamada

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

end of thread, other threads:[~2015-10-22  4:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21  8:21 console vs earlycon ? Masahiro Yamada
2015-10-21  8:57 ` Arnd Bergmann
2015-10-21  9:09   ` Masahiro Yamada
2015-10-21  9:19     ` Arnd Bergmann
2015-10-21  9:30       ` Masahiro Yamada
2015-10-21 10:36         ` Arnd Bergmann
2015-10-21 13:53           ` Peter Hurley
2015-10-21 14:13             ` Arnd Bergmann
2015-10-21 15:32               ` Peter Hurley
2015-10-21 19:00                 ` Arnd Bergmann
2015-10-21 19:24                   ` Peter Hurley
2015-10-21 22:54                     ` Arnd Bergmann
2015-10-21 13:20 ` Peter Hurley
2015-10-22  4:47   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).