Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1334559 > unrolled thread
| Started by | Michal Simek <michal.simek@xilinx.com> |
|---|---|
| First post | 2016-02-15 17:10 +0100 |
| Last post | 2016-02-18 18:30 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/3] serial: xuartps: Enable OF earlycon support Michal Simek <michal.simek@xilinx.com> - 2016-02-15 17:10 +0100
Re: [PATCH 2/3] serial: xuartps: Enable OF earlycon support Arnd Bergmann <arnd@arndb.de> - 2016-02-16 13:00 +0100
Re: [PATCH 2/3] serial: xuartps: Enable OF earlycon support Peter Hurley <peter@hurleysoftware.com> - 2016-02-16 17:40 +0100
Re: [PATCH 2/3] serial: xuartps: Enable OF earlycon support Michal Simek <michal.simek@xilinx.com> - 2016-02-18 09:20 +0100
Re: [PATCH 2/3] serial: xuartps: Enable OF earlycon support Peter Hurley <peter@hurleysoftware.com> - 2016-02-18 18:30 +0100
| From | Michal Simek <michal.simek@xilinx.com> |
|---|---|
| Date | 2016-02-15 17:10 +0100 |
| Subject | [PATCH 2/3] serial: xuartps: Enable OF earlycon support |
| Message-ID | <r2tSO-3jp-13@gated-at.bofh.it> |
Support early console setup via DT for all listed compatible strings. Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- drivers/tty/serial/xilinx_uartps.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 009e0dbc12d2..6f5657766815 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1094,6 +1094,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device, return 0; } EARLYCON_DECLARE(cdns, cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns_a, "xlnx,xuartps", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns_b, "cdns,uart-r1p8", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns_c, "cdns,uart-r1p12", cdns_early_console_setup); /** * cdns_uart_console_write - perform write operation -- 1.9.1
[toc] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-02-16 13:00 +0100 |
| Message-ID | <r2Msp-7lI-3@gated-at.bofh.it> |
| In reply to | #1334559 |
On Monday 15 February 2016 17:05:18 Michal Simek wrote: > Support early console setup via DT for all listed compatible strings. > > Signed-off-by: Michal Simek <michal.simek@xilinx.com> > --- > I'd suggest we take the whole series through arm-soc, as the third patch depends on this second one. Greg, is this ok for you? Arnd
[toc] | [prev] | [next] | [standalone]
| From | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| Date | 2016-02-16 17:40 +0100 |
| Message-ID | <r2QPp-1Uv-39@gated-at.bofh.it> |
| In reply to | #1334559 |
Hi Michal, On 02/15/2016 08:05 AM, Michal Simek wrote: > Support early console setup via DT for all listed compatible strings. > > Signed-off-by: Michal Simek <michal.simek@xilinx.com> > --- > > drivers/tty/serial/xilinx_uartps.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c > index 009e0dbc12d2..6f5657766815 100644 > --- a/drivers/tty/serial/xilinx_uartps.c > +++ b/drivers/tty/serial/xilinx_uartps.c > @@ -1094,6 +1094,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device, > return 0; > } > EARLYCON_DECLARE(cdns, cdns_early_console_setup); > +OF_EARLYCON_DECLARE(cdns_a, "xlnx,xuartps", cdns_early_console_setup); > +OF_EARLYCON_DECLARE(cdns_b, "cdns,uart-r1p8", cdns_early_console_setup); > +OF_EARLYCON_DECLARE(cdns_c, "cdns,uart-r1p12", cdns_early_console_setup); Earlycon now shares a common framework in linux-next. The EARLYCON_DECLARE() can be deleted and the OF_EARLYCON_DECLARE() can all share the same earlycon name. iow, -EARLYCON_DECLARE(cdns, cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p8", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p12", cdns_early_console_setup); Regards, Peter Hurley > /** > * cdns_uart_console_write - perform write operation >
[toc] | [prev] | [next] | [standalone]
| From | Michal Simek <michal.simek@xilinx.com> |
|---|---|
| Date | 2016-02-18 09:20 +0100 |
| Message-ID | <r3rYB-2K0-1@gated-at.bofh.it> |
| In reply to | #1335623 |
Hi Peter, On 16.2.2016 17:33, Peter Hurley wrote: > Hi Michal, > > On 02/15/2016 08:05 AM, Michal Simek wrote: >> Support early console setup via DT for all listed compatible strings. >> >> Signed-off-by: Michal Simek <michal.simek@xilinx.com> >> --- >> >> drivers/tty/serial/xilinx_uartps.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c >> index 009e0dbc12d2..6f5657766815 100644 >> --- a/drivers/tty/serial/xilinx_uartps.c >> +++ b/drivers/tty/serial/xilinx_uartps.c >> @@ -1094,6 +1094,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device, >> return 0; >> } >> EARLYCON_DECLARE(cdns, cdns_early_console_setup); >> +OF_EARLYCON_DECLARE(cdns_a, "xlnx,xuartps", cdns_early_console_setup); >> +OF_EARLYCON_DECLARE(cdns_b, "cdns,uart-r1p8", cdns_early_console_setup); >> +OF_EARLYCON_DECLARE(cdns_c, "cdns,uart-r1p12", cdns_early_console_setup); > > Earlycon now shares a common framework in linux-next. > > The EARLYCON_DECLARE() can be deleted and the OF_EARLYCON_DECLARE() > can all share the same earlycon name. iow, > > -EARLYCON_DECLARE(cdns, cdns_early_console_setup); > +OF_EARLYCON_DECLARE(cdns, "xlnx,xuartps", cdns_early_console_setup); > +OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p8", cdns_early_console_setup); > +OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p12", cdns_early_console_setup); I have sent v2 and I have tested it. All looks good. Thanks for pointing me to that change. BTW: Is it normal that when earlycon support is enabled that the bootlog is copied again? All what was printed before bootconsole [xxx] disabled is printed twice. Or is this just bug in our driver? Thanks, Michal
[toc] | [prev] | [next] | [standalone]
| From | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| Date | 2016-02-18 18:30 +0100 |
| Message-ID | <r3AyU-uN-45@gated-at.bofh.it> |
| In reply to | #1337122 |
On 02/18/2016 12:01 AM, Michal Simek wrote: > BTW: Is it normal that when earlycon support is enabled that the bootlog > is copied again? All what was printed before bootconsole [xxx] disabled > is printed twice. I think it has to do with the dummy console bug w/ OF. Masahiro Yamada reported this back with 4.4-rc1 [1] but problem occurs before then as well. [1] http://www.gossamer-threads.com/lists/linux/kernel/2313050 > Or is this just bug in our driver? No. Regards, Peter Hurley
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web