Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp486879pxu; Thu, 3 Dec 2020 05:33:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5oI2i5FcugUs2hk777WJgth7/ObBMOFqufHP7yn/3h76PqPCdmwtafug/33cbkB6uNUyz X-Received: by 2002:a17:907:a8a:: with SMTP id by10mr2470296ejc.423.1607002413493; Thu, 03 Dec 2020 05:33:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607002413; cv=none; d=google.com; s=arc-20160816; b=ZxbQCC4SMIZJSOA5VmHxKdltfBgvrs2Obw9k7KqSc/bOUl6iqZEaWANpCRsdWNj+G2 S76TX6yap8Qe1T5oKHjNZHbV6S38tz1GFIcQcSIDQxO/ZyGfZpUb+wWJuW8OyYkG/EyK 315VwwvWFhRrrdPOmHPjfaxkna+eEGP4tb+bHhL3ti13qOtndvgtBg86Q682b+JX2luo EY5aNunPR4BiJNlhw72tSOfM6swjgrUFCQip0LOETpZJU6LzYh6I+MN26ruOcuxGiMet 1E7MIoyNFa+zv/zfDirMacdhzwvD/uAiEyNBh3bFLxMwm1sU5KNapCPSLwMXMS7e/y+0 irSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fZWF7p8HrDFY7Gi2Y/6RqbeHsBsKwYioP4KYDJDsw90=; b=BKZQHiBoKLDomSc5l3wvuQM5iBxG04pC9d/4rNNaUXvcra8klzQxXmPPw02Be50cDQ JnkZ8BcCSKa02NFL8Cyybl12TLzgw0ZQPkOP4gw9jynxXbocHLmJl5cEM0sc7mhMZECk fWpf06QoOgHp7qDNTjNzwL7Iy9pr/B42IStOMDv3Zqxyk/QACicwbtcv12A2dCD6wIXp GME6h4+f+WDNHyso/xvp7a/lmriK4Ld5grLVtvmyO5tNuDn5LyiE7XzQdoHssCDy2Mfl 6yvMajxiXkmEclCupRzl2RxFnYk3/ewQ8loUcja0JhnH++Q+VMtkbMOQ8ZVbMfAvn7t8 f3Ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id x5si889828edv.585.2020.12.03.05.33.09; Thu, 03 Dec 2020 05:33:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2436540AbgLCNaS (ORCPT + 99 others); Thu, 3 Dec 2020 08:30:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:47918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436461AbgLCNaF (ORCPT ); Thu, 3 Dec 2020 08:30:05 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhen Lei , Arnd Bergmann , Florian Fainelli , Sasha Levin , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.9 10/39] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges Date: Thu, 3 Dec 2020 08:28:04 -0500 Message-Id: <20201203132834.930999-10-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201203132834.930999-1-sashal@kernel.org> References: <20201203132834.930999-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhen Lei [ Upstream commit 2013a4b684b6eb614ee5c9a3c07b0ae6f5ca96d9 ] The scripts/dtc/checks.c requires that the node have empty "dma-ranges" property must have the same "#address-cells" and "#size-cells" values as the parent node. Otherwise, the following warnings is reported: arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning \ (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but \ its #address-cells (1) differs from / (2) arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi:7.3-14: Warning \ (dma_ranges_format): /usb:dma-ranges: empty "dma-ranges" property but \ its #size-cells (1) differs from / (2) Arnd Bergmann figured out why it's necessary: Also note that the #address-cells=<1> means that any device under this bus is assumed to only support 32-bit addressing, and DMA will have to go through a slow swiotlb in the absence of an IOMMU. Suggested-by: Arnd Bergmann Signed-off-by: Zhen Lei Link: https://lore.kernel.org/r/20201016090833.1892-2-thunder.leizhen@huawei.com' Acked-by: Florian Fainelli Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- .../dts/broadcom/stingray/stingray-usb.dtsi | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi index 55259f973b5a9..aef8f2b00778d 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi @@ -5,20 +5,20 @@ usb { compatible = "simple-bus"; dma-ranges; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x0 0x68500000 0x00400000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0x68500000 0x0 0x00400000>; usbphy0: usb-phy@0 { compatible = "brcm,sr-usb-combo-phy"; - reg = <0x00000000 0x100>; + reg = <0x0 0x00000000 0x0 0x100>; #phy-cells = <1>; status = "disabled"; }; xhci0: usb@1000 { compatible = "generic-xhci"; - reg = <0x00001000 0x1000>; + reg = <0x0 0x00001000 0x0 0x1000>; interrupts = ; phys = <&usbphy0 1>, <&usbphy0 0>; phy-names = "phy0", "phy1"; @@ -28,7 +28,7 @@ xhci0: usb@1000 { bdc0: usb@2000 { compatible = "brcm,bdc-v0.16"; - reg = <0x00002000 0x1000>; + reg = <0x0 0x00002000 0x0 0x1000>; interrupts = ; phys = <&usbphy0 0>, <&usbphy0 1>; phy-names = "phy0", "phy1"; @@ -38,21 +38,21 @@ bdc0: usb@2000 { usbphy1: usb-phy@10000 { compatible = "brcm,sr-usb-combo-phy"; - reg = <0x00010000 0x100>; + reg = <0x0 0x00010000 0x0 0x100>; #phy-cells = <1>; status = "disabled"; }; usbphy2: usb-phy@20000 { compatible = "brcm,sr-usb-hs-phy"; - reg = <0x00020000 0x100>; + reg = <0x0 0x00020000 0x0 0x100>; #phy-cells = <0>; status = "disabled"; }; xhci1: usb@11000 { compatible = "generic-xhci"; - reg = <0x00011000 0x1000>; + reg = <0x0 0x00011000 0x0 0x1000>; interrupts = ; phys = <&usbphy1 1>, <&usbphy2>, <&usbphy1 0>; phy-names = "phy0", "phy1", "phy2"; @@ -62,7 +62,7 @@ xhci1: usb@11000 { bdc1: usb@21000 { compatible = "brcm,bdc-v0.16"; - reg = <0x00021000 0x1000>; + reg = <0x0 0x00021000 0x0 0x1000>; interrupts = ; phys = <&usbphy2>; phy-names = "phy0"; -- 2.27.0