Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp531043lqt; Fri, 19 Apr 2024 03:13:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI2p7KhTQppLvjUutvKDDI62sSk09pb86NeKHQt7mTAX7RLpgEsSEKM6A7OkEWDOycqHAoBUtsN9WatMHVgs1CE8AA14BTyOM+ZOeQTg== X-Google-Smtp-Source: AGHT+IEpF39EOzLodKSv+mN3Pi2fNOA35RmOe1jzbqtUaOYwmCRgoLq0Z7hPML40AdE5rwgvpKZN X-Received: by 2002:a17:907:76f9:b0:a4e:65e5:9ffc with SMTP id kg25-20020a17090776f900b00a4e65e59ffcmr1504283ejc.75.1713521584968; Fri, 19 Apr 2024 03:13:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713521584; cv=pass; d=google.com; s=arc-20160816; b=d2+ezE1zS31BiWJyckxVUINYV4JHIvddtyEtiYD25e2mnc/r9uESKUTeFxC5I5Xobd BkYvsgJotax9hAhxXcKAgpU9+pNlJHSpq0WG0rDM+np831xiyf6oIDFN/fHV5keQvYZb 1QVp5hhDtO6Fw0yoR/hqqI9z+uU1D4fZm0jFU3uxN5ZEl2O+fiavwSUhsLCdoGdDgyA1 o+dnXMrjVmNJ46YjEIEukdVljRCDJzp0d1/TuIHsKxrz6UJH3jbUNrzwDmsvfGldPE5V mHgB0b1bdUzwYLHPfOMOSkHdYTw0Rs6YXkPr9SqzeLG3Q08BVxJ3ETR7heN/jXqZAvVn XkCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=Gct20XLIuYHSt+9lbrp775EiPGhqYMH/bCsk7JRn7F8=; fh=U0oULSI5toQXwr8Cib1iIAF99txW9ytx8nrc+ZkpqGc=; b=eLBwbFLr2y4jQ4X1Sa7dn0qG+IqTxs4Sxzgqtdh82kLXJVSKhFlnIQmP5tgpYP1lJa XuTIpBSPM1a3Axk9Ib/ZxUoiOAV/qXGBwIb4NuKauf79SNTHUFa7v4Up4JzVVkfgIDka bi8ibRapCr2Jjw5KaQ2+qZgNZdBjYwF4GW2Zs5gfF8YpDpeDOfaDabCr34t+pRJBEOFy oV8ngJVIVykV8lASI7ZS/QFiNqrQrW4itef5M3ue55KoyrKxWBiQiKKMIHO3a2W/8NJL +GZ8PT43qtr4vTa08WbCvewPZQ2YMsPc1nNTGey+/bnNYKGRS972ZAToT9NlquDGVhPW gnHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b5sAkAz+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t1-20020a170906a10100b00a51b9000041si2098240ejy.436.2024.04.19.03.13.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 03:13:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b5sAkAz+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B05901F2153D for ; Fri, 19 Apr 2024 10:13:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02E3112D1FF; Fri, 19 Apr 2024 10:09:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b5sAkAz+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5E8277F7CF; Fri, 19 Apr 2024 10:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713521378; cv=none; b=HC8XG2TFP6Aoaz27nafrnYsB/PfguMooR72iGIBLgvkHmrVF4VCd8XdtJf5jgHjkge3ZuhJnUKZ0dEFNyc9wXhtdWuietF6fYT38feDJ9KLii585JdS5sw0iL9HAx8NxkzKl4GIzkR+fcxAkPxsM+rmAHitGTfwEcfUphUEXlP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713521378; c=relaxed/simple; bh=zupCYmW/khoZsM2dTyo44r06AeRMOCSbdh6WzpcdHaQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NNEJYcxW8FWec2CeOFQpNgmrJJuhSQNo/NlJ8217yKYgnvUQW7Xl070M5mZwlD63ALzO+2W3nSEKVC1SFupxVQqyqGEung8gXdw8O0IC6dQMbWfEGeGEKH/IHF0SER9hgXAdcbgjlTqrQT5rQcMXH45sVFUcvOksQDgSoA9Ksgw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b5sAkAz+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 3C2CCC4AF18; Fri, 19 Apr 2024 10:09:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713521378; bh=zupCYmW/khoZsM2dTyo44r06AeRMOCSbdh6WzpcdHaQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=b5sAkAz+MYlWVHjGyJhb7cjjMrIzPLWwdRocg9MBNvjMifN5c/oWFNcZ3YFa0pOHw rhg0FS8695lhRsCbTyEFgBfwtyd83UnH5VkXlVethdkYK/JzqPqylBJaJVr4gHIcoU VKDdVXLMJRji+B0iMICIO3yzKEoUyqm3YeitpHcUGrGd4NsWJMIaFefo+62vu1wkj4 WIpyRnxpzp+FrSBckUZSmpiFmQPIqKFBxsUcA//iM0tb3qJsq6UUHYwXxOR7kyL+5K 5gX4NiKRZ5yFHmUrATbcxtwXvq9ZaR+QZDmm5lNMv+/KvTEhBwptZTKSxeydAxj6z3 70CwM/JLB/jLg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34513C4345F; Fri, 19 Apr 2024 10:09:38 +0000 (UTC) From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL_via_B4_Relay?= Date: Fri, 19 Apr 2024 13:09:35 +0300 Subject: [PATCH net-next 12/13] net: dsa: mt7530: get rid of mac_port_validate member of mt753x_info Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240419-for-netnext-mt7530-improvements-4-v1-12-6d852ca79b1d@arinc9.com> References: <20240419-for-netnext-mt7530-improvements-4-v1-0-6d852ca79b1d@arinc9.com> In-Reply-To: <20240419-for-netnext-mt7530-improvements-4-v1-0-6d852ca79b1d@arinc9.com> To: Daniel Golle , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King Cc: Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713521374; l=1895; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=eQVxi9XpKVjFwy7G/fq5LbkX2JyuVqKa+YvcokozwTs=; b=lxKhAM4lxFCiiqoqRrJSVABwHhzwSUDPFhr7NyBQKSYKAJ/uj+TkzxfnF1NgqOky4nNKWj8lp OBrKUp3G5FsDnkupYnsKRep6NDcDGaDggv/efjBlf2CKrFDM975BVzK X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=z49tLn29CyiL4uwBTrqH9HO1Wu3sZIuRp4DaLZvtP9M= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-Xeront with auth_id=137 X-Original-From: =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= Reply-To: arinc.unal@arinc9.com From: Arınç ÜNAL The mac_port_validate member of the mt753x_info structure is not being used, remove it. Improve the member description section in the process. Signed-off-by: Arınç ÜNAL --- drivers/net/dsa/mt7530.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/net/dsa/mt7530.h b/drivers/net/dsa/mt7530.h index 6a6ef34b48c4..2ea4e24628c6 100644 --- a/drivers/net/dsa/mt7530.h +++ b/drivers/net/dsa/mt7530.h @@ -743,15 +743,14 @@ struct mt753x_pcs { /* struct mt753x_info - This is the main data structure for holding the specific * part for each supported device + * @id: Holding the identifier to a switch model + * @pcs_ops: Holding the pointer to the MAC PCS operations structure * @sw_setup: Holding the handler to a device initialization * @phy_read_c22: Holding the way reading PHY port using C22 * @phy_write_c22: Holding the way writing PHY port using C22 * @phy_read_c45: Holding the way reading PHY port using C45 * @phy_write_c45: Holding the way writing PHY port using C45 - * @phy_mode_supported: Check if the PHY type is being supported on a certain - * port - * @mac_port_validate: Holding the way to set addition validate type for a - * certan MAC port + * @mac_port_get_caps: Holding the handler that provides MAC capabilities * @mac_port_config: Holding the way setting up the PHY attribute to a * certain MAC port */ @@ -770,9 +769,6 @@ struct mt753x_info { int regnum, u16 val); void (*mac_port_get_caps)(struct dsa_switch *ds, int port, struct phylink_config *config); - void (*mac_port_validate)(struct dsa_switch *ds, int port, - phy_interface_t interface, - unsigned long *supported); void (*mac_port_config)(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface); -- 2.40.1