From patchwork Mon Feb 14 07:00:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 1592267 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=WQtcV2Zv; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=arinc9.com header.i=arinc.unal@arinc9.com header.a=rsa-sha256 header.s=zmail header.b=Hz8paY1D; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JxwjQ5xpXz9s8s for ; Mon, 14 Feb 2022 18:25:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WNlbK4OPN5P9pBZEE2ymJthrfcdT0nUOS1DOetyBIM0=; b=WQtcV2ZvX26Ag1 AKPeQzrnrxPc5/rA6ss469gDmqIpYd2WVwbLz1V6oe3zoBV5lWMArI65EDzIsjxbNk4Xk3jIBayWj YwTp/AVp80mAAozjDlUsR7HvhRcUNLEeKyoUa9qrylYBThx1dq7FQtfEIS2FHNSgV7yO0Lej6CzSV EIHr2FUoGybQdL57ZIWgcIsqkLrpALXq8BiBn3M7gDNtflCLnHRwVbYRELfI8yLPTYyjck76FypFl EUt31FWtn1AjfuZPAGccudOPEt5pM96U9N1b8xQ0v0y+wJB4J4Zryut4osHzNAjNPs8igjHEMiIN2 mKdKKsdm0VsVRkjfu/dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJVhH-00Dfsu-U6; Mon, 14 Feb 2022 07:22:56 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJVMz-00DXlX-Dq for openwrt-devel@lists.openwrt.org; Mon, 14 Feb 2022 07:02:02 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1644822069; cv=none; d=zohomail.com; s=zohoarc; b=fay6RfPcSCQfsbq2hcG9ZX1Vn4FI+WHiON6j1bNffKZBOmrt51HocQx2aRjDSM0j8/zvnB4vKHoxpz9Ki1BSO7tyC/rRA+0PGIiAlZ3IhLVTA6wUDzn27nxMiWZgQjJo7SZjr0mTQUDsX3JosZVumqjteVrLlBj4GEfkoFZGwWs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644822069; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=tJeswRusjjK8aBz5tX1WS7j7okCIg2hu3mXvb6mazvU=; b=KWsi4vi2arz0nVQCJeNU0Hi3T34ij/swcUQNuc6BYBRYzu1pvfwt1jtCwzOQ+1nmx2Ar4iGq76/cyoLbW+YZ7M//HZlrROwsz6lZkqowq5VUclIN3eN785TfZcVBFwL70Zyl2511ag1MTFxaqI2yT0Cyal5JgAgrATJ3KcFWO1A= 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=1644822069; 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=tJeswRusjjK8aBz5tX1WS7j7okCIg2hu3mXvb6mazvU=; b=Hz8paY1DpNpWwb5nQzhg3WBthS4zNa+TjwUbqygDHcmSbBcllwo78XSPmdijp68+ KNmTUClEe6OOFuI1MbqHCEBt/4VqYdVMil6kUxYJNk4GMaFmaFMIQ+Ba51J68+ATgPJ 28BxJnzdeVnJT+xUlHBv42sb1gse+ibmeV7cHx7o= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1644822067791332.98997712592984; Sun, 13 Feb 2022 23:01:07 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: DENG Qingfang , Sander Vanheule , Stijn Tintel , Chuanhong Guo , Rosen Penev , Daniel Golle , Sungbo Eo Cc: openwrt-devel@lists.openwrt.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH v4 1/3] ramips: mt7621-dts: fix switch@1f warnings Date: Mon, 14 Feb 2022 10:00:38 +0300 Message-Id: <20220214070040.5091-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220214070040.5091-1-arinc.unal@arinc9.com> References: <20220214070040.5091-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220213_230157_608415_916F4250 X-CRM114-Status: UNSURE ( 6.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Remove reg property from ports node to fix this warning: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name Another warning surfaces afterwards. Remove #address-cells and #size-cells from switch@1f node to fix this warning: Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [136.143.188.14 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Remove reg property from ports node to fix this warning: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name Another warning surfaces afterwards. Remove #address-cells and #size-cells from switch@1f node to fix this warning: Warning (avoid_unnecessary_addr_size): /ethernet@1e100000/mdio-bus/switch@1f: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Signed-off-by: Arınç ÜNAL --- target/linux/ramips/dts/mt7621.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index b784a9d60c..ec95223a62 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -481,8 +481,6 @@ switch0: switch@1f { compatible = "mediatek,mt7621"; - #address-cells = <1>; - #size-cells = <0>; reg = <0x1f>; mediatek,mcm; resets = <&rstctrl 2>; @@ -494,7 +492,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - reg = <0>; port@0 { status = "disabled";