* [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter [not found] <1414592918-25138-1-git-send-email-geert+renesas@glider.be> @ 2014-10-29 14:28 ` Geert Uytterhoeven 2014-10-30 10:44 ` Laurent Pinchart 0 siblings, 1 reply; 6+ messages in thread From: Geert Uytterhoeven @ 2014-10-29 14:28 UTC (permalink / raw) To: Simon Horman, Magnus Damm Cc: Laurent Pinchart, linux-sh, Geert Uytterhoeven, devicetree Since commit 595c6a4bb77f0096 ("ARM: shmobile: koelsch: Remove legacy C board code"), koelsch is restricted to booting from DT, so chosen/stdout-path is always used, and we can drop the "console=" parameter from chosen/bootargs. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Cc: devicetree@vger.kernel.org --- arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 191f32bc43ea6dad..523ae4d807b907b2 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -25,7 +25,7 @@ }; chosen { - bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = &scif0; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter 2014-10-29 14:28 ` [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter Geert Uytterhoeven @ 2014-10-30 10:44 ` Laurent Pinchart 2014-10-30 11:03 ` Geert Uytterhoeven 0 siblings, 1 reply; 6+ messages in thread From: Laurent Pinchart @ 2014-10-30 10:44 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Simon Horman, Magnus Damm, Laurent Pinchart, linux-sh, devicetree Hi Geert, On Wednesday 29 October 2014 15:28:38 Geert Uytterhoeven wrote: > Since commit 595c6a4bb77f0096 ("ARM: shmobile: koelsch: Remove legacy C > board code"), koelsch is restricted to booting from DT, so > chosen/stdout-path is always used, and we can drop the "console=" > parameter from chosen/bootargs. I'm curious, how is the baud rate now selected ? > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > Cc: devicetree@vger.kernel.org > --- > arch/arm/boot/dts/r8a7791-koelsch.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts > b/arch/arm/boot/dts/r8a7791-koelsch.dts index > 191f32bc43ea6dad..523ae4d807b907b2 100644 > --- a/arch/arm/boot/dts/r8a7791-koelsch.dts > +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts > @@ -25,7 +25,7 @@ > }; > > chosen { > - bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs > ip=dhcp"; > + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; > stdout-path = &scif0; > }; -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter 2014-10-30 10:44 ` Laurent Pinchart @ 2014-10-30 11:03 ` Geert Uytterhoeven 2014-11-14 3:02 ` Simon Horman 0 siblings, 1 reply; 6+ messages in thread From: Geert Uytterhoeven @ 2014-10-30 11:03 UTC (permalink / raw) To: Laurent Pinchart Cc: Geert Uytterhoeven, Simon Horman, Magnus Damm, Laurent Pinchart, Linux-sh list, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Oct 30, 2014 at 11:44 AM, Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org> wrote: > On Wednesday 29 October 2014 15:28:38 Geert Uytterhoeven wrote: >> Since commit 595c6a4bb77f0096 ("ARM: shmobile: koelsch: Remove legacy C >> board code"), koelsch is restricted to booting from DT, so >> chosen/stdout-path is always used, and we can drop the "console=" >> parameter from chosen/bootargs. > > I'm curious, how is the baud rate now selected ? >From an earlier response for kzm9d: "I forgot emev is the only supported SoC not using sh-sci. drivers/tty/serial/sh-sci.c:serial_console_setup() defaults to 115200 baud, while serial8250_console_setup() defaults to 9600 baud." Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter 2014-10-30 11:03 ` Geert Uytterhoeven @ 2014-11-14 3:02 ` Simon Horman 2014-11-14 8:04 ` Geert Uytterhoeven 0 siblings, 1 reply; 6+ messages in thread From: Simon Horman @ 2014-11-14 3:02 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Laurent Pinchart, Geert Uytterhoeven, Magnus Damm, Laurent Pinchart, Linux-sh list, devicetree@vger.kernel.org On Thu, Oct 30, 2014 at 12:03:22PM +0100, Geert Uytterhoeven wrote: > On Thu, Oct 30, 2014 at 11:44 AM, Laurent Pinchart > <laurent.pinchart@ideasonboard.com> wrote: > > On Wednesday 29 October 2014 15:28:38 Geert Uytterhoeven wrote: > >> Since commit 595c6a4bb77f0096 ("ARM: shmobile: koelsch: Remove legacy C > >> board code"), koelsch is restricted to booting from DT, so > >> chosen/stdout-path is always used, and we can drop the "console=" > >> parameter from chosen/bootargs. > > > > I'm curious, how is the baud rate now selected ? > > >From an earlier response for kzm9d: > > "I forgot emev is the only supported SoC not using sh-sci. > drivers/tty/serial/sh-sci.c:serial_console_setup() defaults to 115200 baud, > while serial8250_console_setup() defaults to 9600 baud." Hi Geert, while backporting this and similar changes for other boards to v3.14/LTSI-3.14 I noticed that koelsch, alt and ape6evm-reference come up without a console. Which is not ideal. I am wondering if you have any thoughts on why this may occur. My wild stab in the dark is some interaction with PM. For reference my backport is the backport/v3.14.23/snapshot2.wip1 tag in my renesas-backports tree. At the very top it includes reversions of the backports of the troublesome patches. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter 2014-11-14 3:02 ` Simon Horman @ 2014-11-14 8:04 ` Geert Uytterhoeven 2014-11-25 0:23 ` Simon Horman 0 siblings, 1 reply; 6+ messages in thread From: Geert Uytterhoeven @ 2014-11-14 8:04 UTC (permalink / raw) To: Simon Horman Cc: Laurent Pinchart, Geert Uytterhoeven, Magnus Damm, Laurent Pinchart, Linux-sh list, devicetree@vger.kernel.org Hi Simon, On Fri, Nov 14, 2014 at 4:02 AM, Simon Horman <horms@verge.net.au> wrote: > On Thu, Oct 30, 2014 at 12:03:22PM +0100, Geert Uytterhoeven wrote: >> On Thu, Oct 30, 2014 at 11:44 AM, Laurent Pinchart >> <laurent.pinchart@ideasonboard.com> wrote: >> > On Wednesday 29 October 2014 15:28:38 Geert Uytterhoeven wrote: >> >> Since commit 595c6a4bb77f0096 ("ARM: shmobile: koelsch: Remove legacy C >> >> board code"), koelsch is restricted to booting from DT, so >> >> chosen/stdout-path is always used, and we can drop the "console=" >> >> parameter from chosen/bootargs. >> > >> > I'm curious, how is the baud rate now selected ? >> >> >From an earlier response for kzm9d: >> >> "I forgot emev is the only supported SoC not using sh-sci. >> drivers/tty/serial/sh-sci.c:serial_console_setup() defaults to 115200 baud, >> while serial8250_console_setup() defaults to 9600 baud." > > Hi Geert, > > while backporting this and similar changes for other boards > to v3.14/LTSI-3.14 I noticed that koelsch, alt and ape6evm-reference > come up without a console. Which is not ideal. > > I am wondering if you have any thoughts on why this may occur. > My wild stab in the dark is some interaction with PM. > > For reference my backport is the backport/v3.14.23/snapshot2.wip1 tag in my > renesas-backports tree. At the very top it includes reversions of the > backports of the troublesome patches. You're missing the core changes that enabled this feature, which appeared in v3.17, cfr. the two commits below. The third one is a fix, but as no one checked the return value, you can drop if it you want. If it still doesn't work afterwards, just let me know, and I'll dive into it. commit 3482f2c52b77bf6596e24aae82e204a0603eba66 Author: Grant Likely <grant.likely@linaro.org> Date: Thu Mar 27 17:18:55 2014 -0700 of: Create of_console_check() for selecting a console specified in /chosen The devicetree has a binding for specifying the console device in the /chosen node, but the kernel doesn't use it consistently. This change adds an API for testing if a device node is a console, and adds a preferred console entry if it is. At the same time this patch removes the of_device_is_stdout_path() API since it is unused. Signed-off-by: Grant Likely <grant.likely@linaro.org> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> commit a208ffd251d08ed7ba6bdf3ae1e423373fb12d3d Author: Grant Likely <grant.likely@linaro.org> Date: Thu Mar 27 18:29:46 2014 -0700 of: Enable console on serial ports specified by /chosen/stdout-path If the devicetree specifies a serial port as a stdout device, then the kernel can use it as the default console if nothing else was selected on the command line. For any serial port that uses the uart_add_one_port() feature, the uart_add_one_port() has all the information needed to automatically enable the console device, which is what this patch does. With this change applied, a device tree platform can be booted without any console= parameters on the command line and the kernel will still be able to determine its console. Tested on QEMU Versatile model and i.MX Signed-off-by: Grant Likely <grant.likely@linaro.org> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> commit 5f74d8b7b8546255db6af45b017e9cbb18aed609 Author: Brian Norris <computersforpeace@gmail.com> Date: Wed Sep 3 11:06:43 2014 -0700 of: correct of_console_check()'s return value The comments above of_console_check() say that it will return TRUE if it registers a preferred console, but add_preferred_console() uses a 0-equals-success convention, so this leaves of_console_check() with an inconsistent policy for its return values. Fortunately, nobody was actually checking the return value of of_console_check(), so this isn't significant at the moment. But let's match the comments, so we're doing what we say. Fixes: 3482f2c52b77 ('of: Create of_console_check() for selecting a console Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Grant Likely <grant.likely@linaro.org> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter 2014-11-14 8:04 ` Geert Uytterhoeven @ 2014-11-25 0:23 ` Simon Horman 0 siblings, 0 replies; 6+ messages in thread From: Simon Horman @ 2014-11-25 0:23 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Laurent Pinchart, Geert Uytterhoeven, Magnus Damm, Laurent Pinchart, Linux-sh list, devicetree@vger.kernel.org On Fri, Nov 14, 2014 at 09:04:29AM +0100, Geert Uytterhoeven wrote: > Hi Simon, > > On Fri, Nov 14, 2014 at 4:02 AM, Simon Horman <horms@verge.net.au> wrote: > > On Thu, Oct 30, 2014 at 12:03:22PM +0100, Geert Uytterhoeven wrote: > >> On Thu, Oct 30, 2014 at 11:44 AM, Laurent Pinchart > >> <laurent.pinchart@ideasonboard.com> wrote: > >> > On Wednesday 29 October 2014 15:28:38 Geert Uytterhoeven wrote: > >> >> Since commit 595c6a4bb77f0096 ("ARM: shmobile: koelsch: Remove legacy C > >> >> board code"), koelsch is restricted to booting from DT, so > >> >> chosen/stdout-path is always used, and we can drop the "console=" > >> >> parameter from chosen/bootargs. > >> > > >> > I'm curious, how is the baud rate now selected ? > >> > >> >From an earlier response for kzm9d: > >> > >> "I forgot emev is the only supported SoC not using sh-sci. > >> drivers/tty/serial/sh-sci.c:serial_console_setup() defaults to 115200 baud, > >> while serial8250_console_setup() defaults to 9600 baud." > > > > Hi Geert, > > > > while backporting this and similar changes for other boards > > to v3.14/LTSI-3.14 I noticed that koelsch, alt and ape6evm-reference > > come up without a console. Which is not ideal. > > > > I am wondering if you have any thoughts on why this may occur. > > My wild stab in the dark is some interaction with PM. > > > > For reference my backport is the backport/v3.14.23/snapshot2.wip1 tag in my > > renesas-backports tree. At the very top it includes reversions of the > > backports of the troublesome patches. > > You're missing the core changes that enabled this feature, which appeared in > v3.17, cfr. the two commits below. The third one is a fix, but as no one checked > the return value, you can drop if it you want. > > If it still doesn't work afterwards, just let me know, and I'll dive into it. Thanks Geert, that was very helpful to me. With the patches you suggested and one more noted below, which I found after a bit of digging, the problem appears to be resolved. I plan to push the result as backport/v3.14.23/snapshot2.wip2 in the not to distant future. > commit 3482f2c52b77bf6596e24aae82e204a0603eba66 > Author: Grant Likely <grant.likely@linaro.org> > Date: Thu Mar 27 17:18:55 2014 -0700 > > of: Create of_console_check() for selecting a console specified in /chosen > > The devicetree has a binding for specifying the console device in the > /chosen node, but the kernel doesn't use it consistently. This change > adds an API for testing if a device node is a console, and adds a > preferred console entry if it is. > > At the same time this patch removes the of_device_is_stdout_path() API > since it is unused. > > Signed-off-by: Grant Likely <grant.likely@linaro.org> > Tested-by: Sascha Hauer <s.hauer@pengutronix.de> > > > commit a208ffd251d08ed7ba6bdf3ae1e423373fb12d3d > Author: Grant Likely <grant.likely@linaro.org> > Date: Thu Mar 27 18:29:46 2014 -0700 > > of: Enable console on serial ports specified by /chosen/stdout-path > > If the devicetree specifies a serial port as a stdout device, then the > kernel can use it as the default console if nothing else was selected on > the command line. For any serial port that uses the uart_add_one_port() > feature, the uart_add_one_port() has all the information needed to > automatically enable the console device, which is what this patch does. > > With this change applied, a device tree platform can be booted without > any console= parameters on the command line and the kernel will still be > able to determine its console. > > Tested on QEMU Versatile model and i.MX > > Signed-off-by: Grant Likely <grant.likely@linaro.org> > Tested-by: Sascha Hauer <s.hauer@pengutronix.de> > > > commit 5f74d8b7b8546255db6af45b017e9cbb18aed609 > Author: Brian Norris <computersforpeace@gmail.com> > Date: Wed Sep 3 11:06:43 2014 -0700 > > of: correct of_console_check()'s return value > > The comments above of_console_check() say that it will return TRUE if it > registers a preferred console, but add_preferred_console() uses a > 0-equals-success convention, so this leaves of_console_check() with an > inconsistent policy for its return values. > > Fortunately, nobody was actually checking the return value of > of_console_check(), so this isn't significant at the moment. > > But let's match the comments, so we're doing what we say. > > Fixes: 3482f2c52b77 ('of: Create of_console_check() for selecting a console > Signed-off-by: Brian Norris <computersforpeace@gmail.com> > Signed-off-by: Grant Likely <grant.likely@linaro.org> > commit 676e1b2fcd9dbb47a59baac13d089621d22c68b8 Author: Grant Likely <grant.likely@linaro.org> Date: Thu Mar 27 17:11:23 2014 -0700 of: Add support for ePAPR "stdout-path" property ePAPR 1.1 defines the "stdout-path" property for specifying the console device, but Linux currently only handles the older "linux,stdout-path" property. This patch adds parsing for the new property name. Signed-off-by: Grant Likely <grant.likely@linaro.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-11-25 0:23 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1414592918-25138-1-git-send-email-geert+renesas@glider.be> 2014-10-29 14:28 ` [PATCH 3/3] ARM: shmobile: koelsch dts: Drop console= bootargs parameter Geert Uytterhoeven 2014-10-30 10:44 ` Laurent Pinchart 2014-10-30 11:03 ` Geert Uytterhoeven 2014-11-14 3:02 ` Simon Horman 2014-11-14 8:04 ` Geert Uytterhoeven 2014-11-25 0:23 ` Simon Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).