Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4598484pja; Thu, 21 Nov 2019 22:34:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxm1NdV03BE+Z6VwaJWwkzWWwNl7yDi7Z8RJzQgDxNRNDXUIhhVR/WzY9ajTgPZX6NOwtVl X-Received: by 2002:a17:906:2518:: with SMTP id i24mr20096788ejb.4.1574404481574; Thu, 21 Nov 2019 22:34:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574404481; cv=none; d=google.com; s=arc-20160816; b=k6oOQ4AEt2jNiCuLsJzWtijwrDc116Yor13mwvs/NddlFX2SpIkr9i5yC++rPSBh24 Pc33YVVH3KZ5JM6X5WmeE/G6sbD4b3X9GhmPMOD6w86HvGsjcw2gftpzw0ejk0Pg3s5m A5ej5c4WfzQkzTU/2sCnBMO0HVI6qkwnDfxzuNCY0rMXeLAfizRKjZLdbU8ZD2TQoEKw hgbQOZnvm1TU1f0dGYNx6IYYLussTx2I4U23PGieh5OqoeTsBIEHJqVhPHvp6fcEs4h7 SOuByXzHWbPBmEzc0bVKkSfXkqOTXqU4qb+Ue/QKVk4yqUVhnWPe3WooRqEpBXdVu/0Q oB5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3wdinnrVAOlZuihvkvM9PcBllxsVZgf7nPYErjA/8T8=; b=AoK2ANxwDxkx1DtEvLcRFBp3gVcTsvCCHmHoL7X8h3i0jYqksfRkNdVhy2MYsN35ze Dho9anwaY9MYASnEKDG9AWVuZlgG1AhqITPFPUFXmRKGBHSH9y1sJE/ozoXHYqLPTqsA cHDBjISQsv/97EHn2nTHTRZkY6LHlkbnHFPoSNmbUD4EVLsJasIG55t5m2JDmKz4cvCL vn6wxEs9/9f/ES8Ao2U0eUbF7qT6fp18ulshBkvSY1B7nkoDh5ocMXyiyhsR1els0i/G iQGD0i3el9SUiuBi5w2ZT8qJj0UA/ZafynF9d7KsbFxib3OUwH85U5M/kk7WF5MxNWmq Gm0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d0aicebp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si4270615edi.252.2019.11.21.22.34.18; Thu, 21 Nov 2019 22:34:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d0aicebp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbfKVFtU (ORCPT + 99 others); Fri, 22 Nov 2019 00:49:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:53202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbfKVFtR (ORCPT ); Fri, 22 Nov 2019 00:49:17 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 479D72070B; Fri, 22 Nov 2019 05:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401756; bh=rBaaCepDaC+PYJzZ8NE3MPbHgZYe5c/CjDWf7Ogf0ww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0aicebpDbgpv6oZaWNZfGa4x2gT7Z4+Jc3Cdkcx3aAWGjUHa7+fkYl/haSIQQPvk gYMTZWKXZs8ft6zee4p8C7nNJH2VtDi+mVVxhKnG4n9n5nF4F3SMgSyjwrStzZttCd IbSAxX2HOlEjA/E7tCVV6R/aibokil8IuNKTN65E= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Fabio Estevam , Rob Herring , Vladimir Zapolskiy , Shawn Guo , Sasha Levin , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 010/219] ARM: dts: imx31: Fix memory node duplication Date: Fri, 22 Nov 2019 00:45:42 -0500 Message-Id: <20191122054911.1750-3-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabio Estevam [ Upstream commit 013d37e4707e24c7b9bc3fc55aeda55ce9c2b262 ] Boards based on imx31 have duplicate memory nodes: - One coming from the board dts file: memory@ - One coming from the imx31.dtsi file. Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts. Reported-by: Rob Herring Signed-off-by: Fabio Estevam Reviewed-by: Vladimir Zapolskiy Tested-by: Vladimir Zapolskiy Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx31-bug.dts | 1 + arch/arm/boot/dts/imx31-lite.dts | 1 + arch/arm/boot/dts/imx31.dtsi | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx31-bug.dts b/arch/arm/boot/dts/imx31-bug.dts index 6ee4ff8e4e8f0..9eb960cc02cc5 100644 --- a/arch/arm/boot/dts/imx31-bug.dts +++ b/arch/arm/boot/dts/imx31-bug.dts @@ -17,6 +17,7 @@ compatible = "buglabs,imx31-bug", "fsl,imx31"; memory@80000000 { + device_type = "memory"; reg = <0x80000000 0x8000000>; /* 128M */ }; }; diff --git a/arch/arm/boot/dts/imx31-lite.dts b/arch/arm/boot/dts/imx31-lite.dts index db52ddccabc33..d17abdfb6330c 100644 --- a/arch/arm/boot/dts/imx31-lite.dts +++ b/arch/arm/boot/dts/imx31-lite.dts @@ -18,6 +18,7 @@ }; memory@80000000 { + device_type = "memory"; reg = <0x80000000 0x8000000>; }; diff --git a/arch/arm/boot/dts/imx31.dtsi b/arch/arm/boot/dts/imx31.dtsi index ca1419ca303c3..2fc64d2c7c88e 100644 --- a/arch/arm/boot/dts/imx31.dtsi +++ b/arch/arm/boot/dts/imx31.dtsi @@ -10,10 +10,8 @@ * The decompressor and also some bootloaders rely on a * pre-existing /chosen node to be available to insert the * command line and merge other ATAGS info. - * Also for U-Boot there must be a pre-existing /memory node. */ chosen {}; - memory { device_type = "memory"; }; aliases { gpio0 = &gpio1; -- 2.20.1