generic: v6.1, v6.6: add patch to fix PHY-muxing on MT7530
[openwrt/staging/pepe2k.git] / target / linux / generic / backport-6.1 / 790-65-v6.10-net-dsa-mt7530-get-rid-of-mac_port_validate-member-o.patch
1 From 21d67c2fabfe40baf33202d3287b67b6c16f8382 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
3 Date: Mon, 22 Apr 2024 10:15:19 +0300
4 Subject: [PATCH 12/15] net: dsa: mt7530: get rid of mac_port_validate member
5 of mt753x_info
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The mac_port_validate member of the mt753x_info structure is not being
11 used, remove it. Improve the member description section in the process.
12
13 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
14 ---
15 drivers/net/dsa/mt7530.h | 10 +++-------
16 1 file changed, 3 insertions(+), 7 deletions(-)
17
18 --- a/drivers/net/dsa/mt7530.h
19 +++ b/drivers/net/dsa/mt7530.h
20 @@ -743,13 +743,12 @@ struct mt753x_pcs {
21
22 /* struct mt753x_info - This is the main data structure for holding the specific
23 * part for each supported device
24 + * @id: Holding the identifier to a switch model
25 + * @pcs_ops: Holding the pointer to the MAC PCS operations structure
26 * @sw_setup: Holding the handler to a device initialization
27 * @phy_read: Holding the way reading PHY port
28 * @phy_write: Holding the way writing PHY port
29 - * @phy_mode_supported: Check if the PHY type is being supported on a certain
30 - * port
31 - * @mac_port_validate: Holding the way to set addition validate type for a
32 - * certan MAC port
33 + * @mac_port_get_caps: Holding the handler that provides MAC capabilities
34 * @mac_port_config: Holding the way setting up the PHY attribute to a
35 * certain MAC port
36 */
37 @@ -763,9 +762,6 @@ struct mt753x_info {
38 int (*phy_write)(struct mt7530_priv *priv, int port, int regnum, u16 val);
39 void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
40 struct phylink_config *config);
41 - void (*mac_port_validate)(struct dsa_switch *ds, int port,
42 - phy_interface_t interface,
43 - unsigned long *supported);
44 void (*mac_port_config)(struct dsa_switch *ds, int port,
45 unsigned int mode,
46 phy_interface_t interface);