linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* earlycon: no match?
@ 2015-05-03 21:10 Robert Schwebel
  2015-05-04 14:01 ` Peter Hurley
  0 siblings, 1 reply; 25+ messages in thread
From: Robert Schwebel @ 2015-05-03 21:10 UTC (permalink / raw)
  To: Peter Hurley; +Cc: linux-serial, linux-kernel, kernel

Hi Peter,

with 4.1-rc1, my boxes with early console enabled show something like
this (the example is vexpress, but it for example also happens on an
AM335x board):

  earlycon: no match for ttyAMA0,38400n8

The box was booted with "console=ttyAMA0,38400n8" on the commandline.
If I understand this right, the code in drivers/tty/serial/earlycon.c
calls setup_earlycon() with the string above ("ttyAMA0,38400n8") and
fails to find that string in the "names" part of the __earlycon_table,
because for the pl011 component on vexpress, the early console was
registered in drivers/tty/serial/amba-pl011.c with:

OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup);
                    ^^^^^ name

So isn't that trying to match "ttyAMA0" against "arm,pl011"? I have the
feeling that I didn't understand the logic behind that.

Can you elaborate about how this is supposed to work correctly?

Thanks,
rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

end of thread, other threads:[~2015-05-08 16:11 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-03 21:10 earlycon: no match? Robert Schwebel
2015-05-04 14:01 ` Peter Hurley
2015-05-04 16:52   ` Peter Hurley
2015-05-04 19:42   ` Robert Schwebel
2015-05-04 20:21     ` Peter Hurley
2015-05-04 20:52       ` Robert Schwebel
2015-05-04 21:27         ` Peter Hurley
2015-05-04 21:58           ` Robert Schwebel
2015-05-04 22:31             ` Peter Hurley
2015-05-05  4:51               ` Robert Schwebel
2015-05-05 10:39                 ` Peter Hurley
2015-05-05 16:32                   ` Robert Schwebel
2015-05-05 18:15                     ` Peter Hurley
2015-05-05 17:06                 ` Fabio Estevam
2015-05-07 17:09           ` Maciej W. Rozycki
2015-05-07 17:22             ` Peter Hurley
2015-05-07 20:14               ` Maciej W. Rozycki
2015-05-07 21:13                 ` Peter Hurley
2015-05-07 22:25                   ` Maciej W. Rozycki
2015-05-07 22:37                     ` Peter Hurley
2015-05-08 16:11                       ` Maciej W. Rozycki
2015-05-08  6:34               ` Sascha Hauer
2015-05-08 10:12                 ` Peter Hurley
2015-05-04 20:22   ` Sascha Hauer
2015-05-04 20:34     ` Peter Hurley

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).