From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Hurley Subject: Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE Date: Tue, 22 Mar 2016 09:15:15 -0700 Message-ID: <56F16F93.808@hurleysoftware.com> References: <1458643595-14719-1-git-send-email-aleksey.makarov@linaro.org> <1458643595-14719-7-git-send-email-aleksey.makarov@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pf0-f175.google.com ([209.85.192.175]:36328 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753679AbcCVQPU (ORCPT ); Tue, 22 Mar 2016 12:15:20 -0400 Received: by mail-pf0-f175.google.com with SMTP id u190so318665634pfb.3 for ; Tue, 22 Mar 2016 09:15:20 -0700 (PDT) In-Reply-To: <1458643595-14719-7-git-send-email-aleksey.makarov@linaro.org> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Aleksey Makarov , Greg Kroah-Hartman , "Rafael J . Wysocki" , Len Brown Cc: linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Leif Lindholm , Graeme Gregory , Al Stone , Christopher Covington , Yury Norov , "Zheng, Lv" , Jiri Slaby On 03/22/2016 03:46 AM, Aleksey Makarov wrote: > This patch adds definition of early console data for pl011. > It allows setting up an early console with a string passed in > command line or compiled by the ACPI SPCR table handler. This shouldn't be necessary in 4.5+ since OF_EARLYCON_DECLARE() should be equivalent to EARLYCON_DECLARE() as well. Regards, Peter Hurley > Signed-off-by: Aleksey Makarov > --- > drivers/tty/serial/amba-pl011.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c > index 59b743f..af6f87cf 100644 > --- a/drivers/tty/serial/amba-pl011.c > +++ b/drivers/tty/serial/amba-pl011.c > @@ -2385,6 +2385,7 @@ static int __init pl011_early_console_setup(struct earlycon_device *device, > return 0; > } > OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup); > +EARLYCON_DECLARE(pl011, pl011_early_console_setup); > > #else > #define AMBA_CONSOLE NULL > From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter@hurleysoftware.com (Peter Hurley) Date: Tue, 22 Mar 2016 09:15:15 -0700 Subject: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE In-Reply-To: <1458643595-14719-7-git-send-email-aleksey.makarov@linaro.org> References: <1458643595-14719-1-git-send-email-aleksey.makarov@linaro.org> <1458643595-14719-7-git-send-email-aleksey.makarov@linaro.org> Message-ID: <56F16F93.808@hurleysoftware.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 03/22/2016 03:46 AM, Aleksey Makarov wrote: > This patch adds definition of early console data for pl011. > It allows setting up an early console with a string passed in > command line or compiled by the ACPI SPCR table handler. This shouldn't be necessary in 4.5+ since OF_EARLYCON_DECLARE() should be equivalent to EARLYCON_DECLARE() as well. Regards, Peter Hurley > Signed-off-by: Aleksey Makarov > --- > drivers/tty/serial/amba-pl011.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c > index 59b743f..af6f87cf 100644 > --- a/drivers/tty/serial/amba-pl011.c > +++ b/drivers/tty/serial/amba-pl011.c > @@ -2385,6 +2385,7 @@ static int __init pl011_early_console_setup(struct earlycon_device *device, > return 0; > } > OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup); > +EARLYCON_DECLARE(pl011, pl011_early_console_setup); > > #else > #define AMBA_CONSOLE NULL >