From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932163AbbJUIVQ (ORCPT ); Wed, 21 Oct 2015 04:21:16 -0400 Received: from conssluserg003.nifty.com ([202.248.44.41]:31087 "EHLO conssluserg003-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932115AbbJUIVM (ORCPT ); Wed, 21 Oct 2015 04:21:12 -0400 X-Nifty-SrcIP: [209.85.160.177] MIME-Version: 1.0 Date: Wed, 21 Oct 2015 17:21:07 +0900 Message-ID: Subject: console vs earlycon ? From: Masahiro Yamada To: linux-serial@vger.kernel.org, linux-arm-kernel Cc: Rob Herring , Stefan Agner , Peter Hurley , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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