From mboxrd@z Thu Jan 1 00:00:00 1970 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 F178A3FC0 for ; Mon, 24 Jan 2022 12:45:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1643028341; cv=none; d=zohomail.com; s=zohoarc; b=lN1gd/HhOYU2mxSzZ5VtVCBSui4g0AZdaf1TmHOLJd4SOl8TvGr+6+zDKM0P/01dum3GxMwTpyWGdBTXiQlcPxPKa+pnyxRuaDylUNfNRpLyd7M/12pKYl+zKvjMiHnO0hOLq4W85xyU296Dwo8DqGKhyNrKfmVUbH/1mv8WoD0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643028341; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=8nAeKDj1o/JjDbgA7o+65Lj/YUzWfdwclMGonlMI9u4=; b=FtFFG6ogPAcNj+6zNYw/t2KucpDJe35V1+vObLiJkh2ybDEM46Np4E5a/FAJ1zKmEXKvaR45bHmIiotvvjJ2Usxc5tvb2MGAxsuGfySsxBNaQXE87M799uev8wvJuSjji2dt3icsHggD396KQyZ2KjUL3MMDph3u/yl9/sKFq50= 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=1643028341; 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=8nAeKDj1o/JjDbgA7o+65Lj/YUzWfdwclMGonlMI9u4=; b=SUjOJzfmeJE7SA1/l52CR40HBktCDYSAltMFVfm/1WtwZ8B9EOTL5/JcOdc7TEk1 AW/1vLOQETVEPSc6bzbkPLDWP0RaiQ8/ea4V9GiWHIQW7Yo7DG6oiW7RqRqlQ6EZmVY vZq/r9EcnEn7sx0nAtLcxi6WmhjhLxNiGFddXSh4= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1643028303525367.7065330236376; Mon, 24 Jan 2022 04:45:03 -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 Cc: linux-staging@lists.linux.dev, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= Subject: [PATCH 2/4] staging: mt7621-dts: fix switch0@0 warnings Date: Mon, 24 Jan 2022 15:43:49 +0300 Message-Id: <20220124124351.4604-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220124124351.4604-1-arinc.unal@arinc9.com> References: <20220124124351.4604-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 --- 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