Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1041377pxu; Fri, 16 Oct 2020 02:14:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJCICrwi14MR5n1/wSZJ625NgFEozUP5LNulZoFCcWumUhT5h2/h9NpNqXcMuHAW00Zzml X-Received: by 2002:a17:906:190b:: with SMTP id a11mr2681734eje.260.1602839650198; Fri, 16 Oct 2020 02:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602839650; cv=none; d=google.com; s=arc-20160816; b=LSRtBIDXI36GPzkEjb+BabKKPn5qMOPWzaw+nCu8SuE7DrzMdNmQ1QVO65CufInv3I /Jn0pETkauG84+ioQky191Ag/RwF5Tl3cfEK3PS7ZMaP6QX7doQPtrfiyEdwkxZInuo7 PpFmZykKR3wP/7GUEmg+Bn3D0drZQA8UhT2GskRH+TGx/eaIW4/a5uetpNBPltQFtLFo kQ+KUYJ9Ejp1Dj6NnWwWlYbiSQv0zQNiz/FXDy/VQ7GrM98gtiDl+hqqDYrxEFihUcfJ 9MZT63F0j+unDPgz/0Phd6Eg6NCMa8dkLoikAj2B53DGcFkEySFngzzrcRZbOEQmGrRX M3bg== 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=EQALx51dxiDyD10QoFdBu+d+trRxfsAuU/dJYjYIBMMb7nREWjYktifPvJNmG6Eon8 SZ+rk5wCoXYNH7oX6WWBXRrR6QKuMp1UQoyRI2Cy7LRFE0W7BskzTBiN7Erb3XuES/rJ V6FBo7ctOngydqFV77DhYswXzXy/k/GIoq1VeBviq5EnCCoSewpvHs+AqTXGZjtdlfBP 8BimTWAUAp/tb7rZvsTPkFN5jAtMPa+WZgMq/u0qezWZfQaLz7KsieqPKuP3VZ3Gd3/v e3BE3auOPanoVOb63fWidbohyfMFRI8JTWgaoZpMQEwD0J+RaSQ7RNJwQZ7OwuLB9lgn gT7Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si1252833edy.562.2020.10.16.02.13.47; Fri, 16 Oct 2020 02:14:10 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395017AbgJPJJX (ORCPT + 99 others); Fri, 16 Oct 2020 05:09:23 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.177.134] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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