Message ID | 1458643595-14719-7-git-send-email-aleksey.makarov@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 <aleksey.makarov@linaro.org> > --- > 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 >
On 03/22/2016 07:15 PM, Peter Hurley wrote: > 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. Ok, I will test it and drop this patch Thank you Aleksey Makarov > > Regards, > Peter Hurley > > >> Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org> >> --- >> 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 >> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-serial" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
On 03/22/2016 10:09 AM, Aleksey Makarov wrote: > > On 03/22/2016 07:15 PM, Peter Hurley wrote: >> 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. Sorry, I wrote 4.5+ but I meant 4.6+ > Ok, I will test it and drop this patch > > Thank you > Aleksey Makarov > >> >> Regards, >> Peter Hurley >> >> >>> Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org> >>> --- >>> 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 >>> >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-serial" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >>
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
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. Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org> --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+)