generic: 6.1, 6.6: mt7530: import pending patches
[openwrt/staging/stintel.git] / target / linux / generic / pending-6.1 / 795-12-net-dsa-mt7530-get-rid-of-mac_port_validate-member-o.patch
diff --git a/target/linux/generic/pending-6.1/795-12-net-dsa-mt7530-get-rid-of-mac_port_validate-member-o.patch b/target/linux/generic/pending-6.1/795-12-net-dsa-mt7530-get-rid-of-mac_port_validate-member-o.patch
new file mode 100644 (file)
index 0000000..7ce2d4c
--- /dev/null
@@ -0,0 +1,46 @@
+From 21d67c2fabfe40baf33202d3287b67b6c16f8382 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
+Date: Mon, 22 Apr 2024 10:15:19 +0300
+Subject: [PATCH 12/15] net: dsa: mt7530: get rid of mac_port_validate member
+ of mt753x_info
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 <arinc.unal@arinc9.com>
+---
+ drivers/net/dsa/mt7530.h | 10 +++-------
+ 1 file changed, 3 insertions(+), 7 deletions(-)
+
+--- a/drivers/net/dsa/mt7530.h
++++ b/drivers/net/dsa/mt7530.h
+@@ -743,13 +743,12 @@ 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:         Holding the way reading PHY port
+  * @phy_write:                Holding the way writing PHY port
+- * @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
+  */
+@@ -763,9 +762,6 @@ struct mt753x_info {
+       int (*phy_write)(struct mt7530_priv *priv, int port, 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);