From patchwork Mon Dec 14 17:28:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 343571 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3259598jai; Mon, 14 Dec 2020 10:59:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS73G+/BwpamM76kEdNCPmWY+8IXZm+GAUpKvHEeOvS3TJeD5Padzo0zZOL1lkLWK2yqqL X-Received: by 2002:a17:906:3102:: with SMTP id 2mr23706005ejx.135.1607972374251; Mon, 14 Dec 2020 10:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607972374; cv=none; d=google.com; s=arc-20160816; b=XKnTr1Qh7UX+IxvFeBkeCPuwjHyJgMg/qf1mahS3e3QnAq5SgNZ3/Wo0ZJMnjsBJSt HET+ED6ApphJf9ORtPGGMlHgBvLiSaUTJj3xJDP2CNX5o60aSYhj9Yke6HsuSZkUKCL9 ti0loxMJZL/1BVfbwQeGDBfVjVlJA+wEYPr5v6USVjySwShrUC+yGwflXxUFOCxXx6Pe jshMpqjKOmHM/ZymxKxRo3ZprekMn1Z864/stU7W2FsX4LphqBU6sWA4C+rIC7Cx/AwX 5ys17+7YajIsuOPkqVrIGD16miZpCrv2Cd9Z37tQepSfswcUBTSFgrhEcjSsnjIaUrdI 2DCg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=OmpS0EJ1uZtjpS3ANXhjfL/3t41jVE5Vm0ZylNdtcl8=; b=CGp9uylD125gmNQl8E3K17nYbyRbfbh4Ku4qpUT+avm5NAu09jkNOEwel4z7yYljl3 CSlvxNoQJBYyWqMeUwXOdY6rXh4lkWWHLWoHPUEwK/mR8vr8lcVYrUehTG2Fd1qfTM0S tMeIwLdg0yBrm+bUNRdscfh+Y+fYQa8dMja62/CgTK9iHTwhJIuj0znzX3+M5KLr7wKv bBEwkVJs7BKiSqstePaDn0JSehpjB4p3L6J9lcoDTIGHswIwWBBmQQI19JXjbBhtcbzV AB/xaNX0t/Y0zXtJgW/ZbUVCBR8sAIta3tCj1yiF2uG+LDOaa5tu+jF84dKB81iHrvkx kTKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr3si10177157ejb.388.2020.12.14.10.59.34; Mon, 14 Dec 2020 10:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502042AbgLNS4k (ORCPT + 14 others); Mon, 14 Dec 2020 13:56:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:47736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502245AbgLNRhh (ORCPT ); Mon, 14 Dec 2020 12:37:37 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Zhen Lei , Florian Fainelli , Sasha Levin Subject: [PATCH 5.9 047/105] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges Date: Mon, 14 Dec 2020 18:28:21 +0100 Message-Id: <20201214172557.546364677@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172555.280929671@linuxfoundation.org> References: <20201214172555.280929671@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.27.0 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 @@ 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 @@ 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 @@ bdc1: usb@21000 { compatible = "brcm,bdc-v0.16"; - reg = <0x00021000 0x1000>; + reg = <0x0 0x00021000 0x0 0x1000>; interrupts = ; phys = <&usbphy2>; phy-names = "phy0";