Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751205AbdGOJsK (ORCPT ); Sat, 15 Jul 2017 05:48:10 -0400 Received: from benson.default.arb33.uk0.bigv.io ([46.43.0.16]:53096 "EHLO benson.default.arb33.uk0.bigv.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbdGOJsI (ORCPT ); Sat, 15 Jul 2017 05:48:08 -0400 X-Greylist: delayed 2679 seconds by postgrey-1.27 at vger.kernel.org; Sat, 15 Jul 2017 05:48:07 EDT From: Ian Campbell To: linux-kernel@vger.kernel.org Cc: Ian Campbell , Ivan Mikhaylov , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH] powerpc/44x/fsp2: correct dtb reg property for /sdhci@020c0000 Date: Sat, 15 Jul 2017 10:03:02 +0100 Message-Id: <20170715090302.23105-1-ijc@hellion.org.uk> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1836 Lines: 45 Building the split device-tree tree[0] highlighted that upstream commit 9eec6cb142bd ("powerpc/44x/fsp2: Add device tree for FSP2 board") introduced this warning when building the device tree: $ make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc fsp2.dtb CHK scripts/mod/devicetable-offsets.h DTC arch/powerpc/boot/fsp2.dtb arch/powerpc/boot/fsp2.dtb: Warning (reg_format): "reg" property in /sdhci@020c0000 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) This commit adds the second adress cell as zeroes to resolve the warning. Note: I have no access to or information about this platform so this is purely a guess as to the fix. An alternative would be to adjust #address-cells, but whether that is correct or not depends on the platform. [0] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/ Signed-off-by: Ian Campbell Cc: Ivan Mikhaylov Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/boot/dts/fsp2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/fsp2.dts b/arch/powerpc/boot/dts/fsp2.dts index 475953ada707..ab6d2346527f 100644 --- a/arch/powerpc/boot/dts/fsp2.dts +++ b/arch/powerpc/boot/dts/fsp2.dts @@ -362,7 +362,7 @@ mmc0: sdhci@020c0000 { compatible = "st,sdhci-stih407", "st,sdhci"; status = "disabled"; - reg = <0x020c0000 0x20000>; + reg = <0x00000000 0x020c0000 0x20000>; reg-names = "mmc"; interrupt-parent = <&UIC1_3>; interrupts = <21 0x4 22 0x4>; -- 2.11.0