Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751531AbbECVLD (ORCPT ); Sun, 3 May 2015 17:11:03 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:44442 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbbECVK5 (ORCPT ); Sun, 3 May 2015 17:10:57 -0400 Date: Sun, 3 May 2015 23:10:54 +0200 From: Robert Schwebel To: Peter Hurley Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: earlycon: no match? Message-ID: <20150503211054.GR15254@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 23:02:46 up 48 days, 8:54, 75 users, load average: 0,05, 0,17, 0,21 User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: rsc@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1463 Lines: 35 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 | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/