Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756656AbcLNVrh convert rfc822-to-8bit (ORCPT ); Wed, 14 Dec 2016 16:47:37 -0500 Received: from muru.com ([72.249.23.125]:52648 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbcLNVrf (ORCPT ); Wed, 14 Dec 2016 16:47:35 -0500 Date: Wed, 14 Dec 2016 13:46:22 -0800 From: Tony Lindgren To: Pavel Machek Cc: Pali =?utf-8?B?Um9ow6Fy?= , Russell King , Arnd Bergmann , Robin Murphy , Linus Walleij , Ben Dooks , Ivaylo Dimitrov , Sebastian Reichel , Aaro Koskinen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm: dt: Initialize boot_command_line from CONFIG_CMDLINE in case DT does not provide /chosen/bootargs Message-ID: <20161214214622.GC4920@atomide.com> References: <1481749963-8664-1-git-send-email-pali.rohar@gmail.com> <20161214212556.GC28424@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20161214212556.GC28424@amd> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 19 * Pavel Machek [161214 13:26]: > On Wed 2016-12-14 22:12:43, Pali Rohár wrote: > > Commit 008a2ebcd677 ("ARM: dts: omap3: Remove skeleton.dtsi usage") broke > > support for setting cmdline on Nokia N900 via CONFIG_CMDLINE. > > > > It is because arm code booted in DT mode parse cmdline only via function > > early_init_dt_scan_chosen() and that function does not fill variable > > boot_command_line when DTB does not contain /chosen entry. It is called > > from function early_init_dt_scan_nodes() in setup_machine_fdt(). > > > > This patch fixes it by explicitly filling boot_command_line in function > > setup_machine_fdt() after calling early_init_dt_scan_nodes() in case > > boot_command_line still remains empty. > > > > Signed-off-by: Pali Rohár > > Acked-by: Pavel Machek Acked-by: Tony Lindgren