From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 12 Sep 2015 18:26:32 +0200 (CEST) Received: from arrakis.dune.hu ([78.24.191.176]:53272 "EHLO arrakis.dune.hu" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27008088AbbILQ0audCmi (ORCPT ); Sat, 12 Sep 2015 18:26:30 +0200 Received: from localhost (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9A9A828C12F; Sat, 12 Sep 2015 18:25:19 +0200 (CEST) X-Virus-Scanned: at arrakis.dune.hu Received: from localhost.localdomain (dslb-088-073-016-160.088.073.pools.vodafone-ip.de [88.73.16.160]) by arrakis.dune.hu (Postfix) with ESMTPSA id C34C028C088; Sat, 12 Sep 2015 18:25:15 +0200 (CEST) From: Jonas Gorski To: linux-mips@linux-mips.org Cc: Ralf Baechle , Kevin Cernekee , Florian Fainelli , Zubair Lutfullah Kakakhel , James Hogan , John Crispin , Ganesan Ramalingam , Jayachandran C , Andrew Bresticker , James Hartley Subject: [PATCH 0/3] MIPS: allow keeping the dtb command line Date: Sat, 12 Sep 2015 18:26:11 +0200 Message-Id: <1442075174-30414-1-git-send-email-jogo@openwrt.org> X-Mailer: git-send-email 2.1.4 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 49172 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jogo@openwrt.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Currently MIPS kernel code overwrites any bootargs from devicetree unconditionally with the arcscmdline. Several targets work around this by copying the devicetree bootargs into the arcscmdline after parsing the device tree. This patchset adds a new kernel option for keeping the devicetree bootargs, then removes the workarounds and lets the targets instead make use of that option. Since some targets use OF but don't make use of the devicetree bootargs, treat them like non-OF enabled targets and only use the prom commandline/ Jonas Gorski (3): MIPS: use USE_OF as the guard for appended dtb MIPS: make the kernel arguments from dtb available MIPS: make MIPS_CMDLINE_DTB default arch/mips/Kconfig | 21 ++++++++++++++++++++- arch/mips/bmips/setup.c | 1 - arch/mips/kernel/setup.c | 24 +++++++++++++++++------- arch/mips/lantiq/prom.c | 2 -- arch/mips/netlogic/xlp/dt.c | 1 - arch/mips/pistachio/init.c | 1 - arch/mips/ralink/of.c | 2 -- 7 files changed, 37 insertions(+), 15 deletions(-) -- 2.1.4