Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2987931imm; Sun, 1 Jul 2018 09:47:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLb65fL3sX5pcHv4viwhC23M0+uMi+7SnHJyf/UHcav1jsiVo3mTrCNT50pAVU4c621ofck X-Received: by 2002:a17:902:8604:: with SMTP id f4-v6mr22423806plo.4.1530463626157; Sun, 01 Jul 2018 09:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530463626; cv=none; d=google.com; s=arc-20160816; b=xQVDPSJb+cFMlomJdqU+QNXlT/mkdbrZwz+6JkKHZZD+5wZSPH24atiuf31bVctJR5 wIyuw2Cnex9H38DB9e5x9ckH93BccaxUCCLHqvp8Xt4kIvaGMEBJu9x6cjYMe0U9C3ql ApWVIVHarWIZoU+DSxyyLBml87dOLjfekS1ZHGJmYA3VJ+9vluMH4/WzgDDZhrndZfR2 sjEktubEuP5f7UrKlI8qOk7SW5620oDbKeS8uhL7GeU9mxD3QCtP/e4NbVioQ1DrS+ai HbYFPhM04/B7Nq2bpP7r6uSZERAczFeqYUPYK360l+rmoVC+4mU6zONEra59hpbsclmT YzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mIIUSWMlkSvZrOq4Uh9p9CI76MoUPdwWG/rwxi5bgxM=; b=h5H7W4vjxWrE6HakZmCZ01EBQVbtFa2JnkT4ZxKy0U2TBXQZHIfPdJUt0zaLKADAOe AHbC2/WzcMUdYY/tdJV/VC23fENuqNLp+4WutS56n0Ch7gehWUe4IznvX8VQU2B4waWH fbdCcUj95nR6fwy5vo8uAM1n9huyWdO6Uc+oUpGw7AGpp+dTGoBzZSz4+6uGLsekUdvi qsFGHMMHkQe/DF0K1Es8EigzUoImd+B/qIXt4x2Qg1QuLTxXBVbG3jutQRjSzvgDMLKK eRx55zy6Dh21ltaSKGNVZZgWDq0PULgTWOwm3IuZsXFUU8Vdw72qYSoIh9PI293hsQwV AnpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si14041044pld.424.2018.07.01.09.46.51; Sun, 01 Jul 2018 09:47:06 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032465AbeGAQoM (ORCPT + 99 others); Sun, 1 Jul 2018 12:44:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37982 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032052AbeGAQoI (ORCPT ); Sun, 1 Jul 2018 12:44:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2401AA73; Sun, 1 Jul 2018 16:44:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Wang , Rob Herring , Matthias Brugger Subject: [PATCH 4.17 166/220] arm: dts: mt7623: fix invalid memory node being generated Date: Sun, 1 Jul 2018 18:23:10 +0200 Message-Id: <20180701160915.204589308@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sean Wang commit c0b0d540db1a8bfb041166c4991dd6f624e8de45 upstream. Below two wrong nodes in existing DTS files would cause a fail boot since in fact the address 0 is not the correct place the memory device locates at. memory { device_type = "memory"; reg = <0x0 0x0 0x0 0x0>; }; memory@80000000 { reg = <0x0 0x80000000 0x0 0x40000000>; }; In order to avoid having a memory node starting at address 0, we can't include file skeleton64.dtsi and instead need to explicitly manually define a few of properties the DTS relies on such as #address-cells and #size-cells in root node and device_type in the node memory@80000000. Cc: stable@vger.kernel.org Fixes: 31ac0d69a1d4 ("ARM: dts: mediatek: add MT7623 basic support") Signed-off-by: Sean Wang Cc: Rob Herring Signed-off-by: Matthias Brugger Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/mt7623.dtsi | 3 ++- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 1 + arch/arm/boot/dts/mt7623n-rfb.dtsi | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -22,11 +22,12 @@ #include #include #include -#include "skeleton64.dtsi" / { compatible = "mediatek,mt7623"; interrupt-parent = <&sysirq>; + #address-cells = <2>; + #size-cells = <2>; cpu_opp_table: opp-table { compatible = "operating-points-v2"; --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -109,6 +109,7 @@ }; memory@80000000 { + device_type = "memory"; reg = <0 0x80000000 0 0x40000000>; }; }; --- a/arch/arm/boot/dts/mt7623n-rfb.dtsi +++ b/arch/arm/boot/dts/mt7623n-rfb.dtsi @@ -47,6 +47,7 @@ }; memory@80000000 { + device_type = "memory"; reg = <0 0x80000000 0 0x40000000>; };