Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BEE62CA9 for ; Tue, 25 Jan 2022 15:39:33 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1643125164; cv=none; d=zohomail.com; s=zohoarc; b=YLvM5b4cfD664NTaopBOH0LcstS+TvpMlF5mPijaiD6/kgFAxrO9nqidBl5vZXmZEqf9jUnGID+tdLHf6D0x2z8RJRyVT1g0Y4pbyevKU/Gr6ICkC661hyscCCQYQ+v2so+cYQ3owhjqRa88oKc5gGcKAmcnLEcbky53uv3ec3g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643125164; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=CTomf6OOv8I4SDbKKsHm1luQh5NFcZk1nh+a60opaKU=; b=kuoyQSVGPrwkTJ+8TczzUCnFDodCsr1+q7WgDikFTBzPKfdOAPBWprE005Mgkro57F+VYC5aS1JGRGrzxbJilMhYBLBum+fHZCkxAbW+4zryUMT404042Oujy49Y+Xc43Y7rIpPMvtFQwGCy6ZwcHPkHFk2Yx2j2fJdHTq1xq54= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643125164; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=CTomf6OOv8I4SDbKKsHm1luQh5NFcZk1nh+a60opaKU=; b=KIY07Hut53JwXZc5cwdYRIzL3pxNNIAJPdCp9nD5i9Khnc2HPB0JKchNqJ4JtCfK BsX3wxJG3TQVL8Jp5KwpjaY7JuQfmBzo237odRIVOcGKT/DfGEU+Aa06PvRVK2iuDgV ShHvS4xasAQvB3CLEJUEb20vYiDt2q09f8AQ5lIA= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1643125163345522.4334745964095; Tue, 25 Jan 2022 07:39:23 -0800 (PST) From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: Greg KH , Sergio Paracuellos , NeilBrown , DENG Qingfang , Andrew Lunn , Luiz Angelo Daros de Luca , erkin.bozoglu@xeront.com Cc: linux-staging@lists.linux.dev, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= Subject: [PATCH v3 2/4] staging: mt7621-dts: fix switch0@0 warnings Date: Tue, 25 Jan 2022 18:39:01 +0300 Message-Id: <20220125153903.1469-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220125153903.1469-1-arinc.unal@arinc9.com> References: <20220125153903.1469-1-arinc.unal@arinc9.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Remove reg property from ports node to fix this warning: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch0@0/ports: node has a reg or ranges property, but no unit name Another warning surfaces afterwards. Remove #address-cells and #size-cells from switch0@0 node to fix this warning: Warning (avoid_unnecessary_addr_size): /ethernet@1e100000/mdio-bus/switch0@0: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Signed-off-by: Arınç ÜNAL Reviewed-by: Sergio Paracuellos --- drivers/staging/mt7621-dts/mt7621.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi index d120e5872165..35f19d6ae4bd 100644 --- a/drivers/staging/mt7621-dts/mt7621.dtsi +++ b/drivers/staging/mt7621-dts/mt7621.dtsi @@ -360,8 +360,6 @@ phy_external: ethernet-phy@5 { switch0: switch0@0 { compatible = "mediatek,mt7621"; - #address-cells = <1>; - #size-cells = <0>; reg = <0>; mediatek,mcm; resets = <&rstctrl 2>; @@ -374,7 +372,6 @@ switch0: switch0@0 { ports { #address-cells = <1>; #size-cells = <0>; - reg = <0>; port@0 { status = "off"; -- 2.25.1