From patchwork Fri Oct 16 09:08:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 317803 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp1254775ilm; Fri, 16 Oct 2020 02:09:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlIWwfENnohGmlmLFGzhAh7VbQRCpKgDqzuBPbum0jrdZliELrPZRz/1NKt/jnoRWoMbKV X-Received: by 2002:aa7:c2d9:: with SMTP id m25mr2821481edp.226.1602839363304; Fri, 16 Oct 2020 02:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602839363; cv=none; d=google.com; s=arc-20160816; b=exQ6Gt7bQ9AqqMYPlRTplNnlxH3kVMqV9gHxMIZPiMXqBcWJ1wDJmlIsWmrguPopWW 13kA/rmYnNrLDkC21exSTXh32cEAyd/srbIoRT8HiiOvwDTmQgz6L2C2fbHnKXniifiH GBVf8ZiKTkRG180H8x/MmJfhHpbx5YmBowKB/VPD91H6QXWtJJiXStZN+EOUTa0YPeZ8 1kBdThC27Q/9ywci498/tSEs/eSYxVpSA5l6c/QcLSz0a6dYXkv5i8YWxDkTyzafWGjc 5b27Z+ZkzeX616FQlAmyH7aoJ0VbeW1XvXcqvZ3fJUOC6M83eiIm1tpYOIfu5a4Pr+Po R40A== 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 :message-id:date:subject:cc:to:from; bh=WAy6ksjiPtvBWEqVwFkiMDhwBpxClUu9/+dwZpmCA/w=; b=FZIoBnAxHYNzysceNjmiLs9gENmg1g0UdJEUs0zqHa3CarVFuqyIdad9g6XJXpMsDO +G591T/bZ0sv0yz38DK7YUdjVdurXlJiLpX58ZyiyAmqn5gOR4KxJwXEYyeCSbmlBhbo dHHnvItsp1GIUOZ1Iw3C2jXexDOKfhPJjKFY1Gvu2oJvjRcV/XMWqna7ub40cVVdoqmt unMYIHZVaaTXDKDxOFlOMycjXVzPhVkYFkM/01oaS6DCknBlEPSO3O/knSOxqweIU2lH UD9ReSCyEGNMmOeQHkFDu/h9L6zioeHsgdkqeq3hovvVtnm6V2Ri9QZSoKMjNviGhTUf n6VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si1307084ejd.39.2020.10.16.02.09.23; Fri, 16 Oct 2020 02:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395013AbgJPJJV (ORCPT + 6 others); Fri, 16 Oct 2020 05:09:21 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44326 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2394982AbgJPJJF (ORCPT ); Fri, 16 Oct 2020 05:09:05 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id F05E89640A3407912883; Fri, 16 Oct 2020 17:09:00 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.134) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Fri, 16 Oct 2020 17:08:54 +0800 From: Zhen Lei To: Rob Herring , Arnd Bergmann , "Florian Fainelli" , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Andy Gross , Bjorn Andersson , linux-arm-msm , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH v2 0/2] eliminate two common errors reported by any yaml on arm64 Date: Fri, 16 Oct 2020 17:08:31 +0800 Message-ID: <20201016090833.1892-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.134] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org v1 --> v2: Although it's simpler to delete the empty "dma-ranges" property, and the function of_translate_one() in drivers/of/address.c will treate non "dma-ranges" case as empty "dma-ranges". But as Arnd Bergmann suggested: it's not good for the scenario of IOMMU disabled or absented. This version make sure that the node have empty "dma-ranges" property have the same "#address-cells" and "#size-cells" values as its parent node. v1: The following errors occured no matter which YAML file I executed on arm64. Therefore, it is necessary to eliminate it so that people's time and energy are not wasted every time. 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) 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) 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) 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) 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) 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) arch/arm64/boot/dts/qcom/ipq6018.dtsi:185.3-14: Warning (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) arch/arm64/boot/dts/qcom/ipq6018.dtsi:185.3-14: Warning (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) arch/arm64/boot/dts/qcom/ipq6018.dtsi:185.3-14: Warning (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but its #address-cells (1) differs from / (2) arch/arm64/boot/dts/qcom/ipq6018.dtsi:185.3-14: Warning (dma_ranges_format): /soc:dma-ranges: empty "dma-ranges" property but its #size-cells (1) differs from / (2) Zhen Lei (2): arm64: dts: broadcom: clear the warnings caused by empty dma-ranges arm64: dts: qcom: clear the warnings caused by empty dma-ranges .../boot/dts/broadcom/stingray/stingray-usb.dtsi | 20 +++--- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 72 +++++++++++----------- 2 files changed, 46 insertions(+), 46 deletions(-) -- 1.8.3