mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-27 23:34:30 +00:00
dceb5938f8
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.29 Removed upstreamed: generic/backport-6.6/740-v6.9-01-netfilter-flowtable-validate-pppoe-header.patch[1] generic/backport-6.6/740-v6.9-02-netfilter-flowtable-incorrect-pppoe-tuple.patch[2] generic/backport-6.6/790-29-v6.9-net-dsa-mt7530-fix-improper-frames-on-all-25MHz-and-.patch[3] generic/backport-6.6/790-31-v6.10-net-dsa-mt7530-fix-enabling-EEE-on-MT7531-switch-on-.patch[4] generic/backport-6.6/790-34-v6.10-net-dsa-mt7530-fix-mirroring-frames-received-on-loca.patch[5] generic/backport-6.6/790-35-v6.10-net-dsa-mt7530-fix-port-mirroring-for-MT7988-SoC-swi.patch[6] mediatek/patches-6.6/963-net-ethernet-mtk_eth_soc-fix-WED-wifi-reset.patch[7] Manually rebased: generic/backport-6.6/790-23-v6.9-net-dsa-mt7530-get-rid-of-priv-info-cpu_port_config.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=a2471d271042ea18e8a6babc132a8716bb2f08b9 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=4ed82dd368ad883dc4284292937b882f044e625d 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=21b9d89d93422221cdda1b82fd075fa3c94a11d9 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=bd41ee1efd478852a0882ce5f136bc2b5e83eff2 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=d1be3960539249a8690ed09a29d0e3bf34189dd2 6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=f8de1b6208bf71bd3102548d33dd8475573ad2ea 7. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.29&id=6855f724f19620c3ddff57c349e0abba797475b1 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me>
149 lines
5.4 KiB
Diff
149 lines
5.4 KiB
Diff
From af83e0c7d766078fcd5580c0c81b9e5b55ff5906 Mon Sep 17 00:00:00 2001
|
||
From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
|
||
Date: Tue, 6 Feb 2024 01:08:06 +0300
|
||
Subject: [PATCH 16/30] net: dsa: mt7530: remove pad_setup function pointer
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
|
||
The pad_setup function pointer was introduced with 88bdef8be9f6 ("net: dsa:
|
||
mt7530: Extend device data ready for adding a new hardware"). It was being
|
||
used to set up the core clock and port 6 of the MT7530 switch, and pll of
|
||
the MT7531 switch.
|
||
|
||
All of these were moved to more appropriate locations, and it was never
|
||
used for the switch on the MT7988 SoC. Therefore, this function pointer
|
||
hasn't got a use anymore. Remove it.
|
||
|
||
Acked-by: Daniel Golle <daniel@makrotopia.org>
|
||
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
|
||
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|
||
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
|
||
Link: https://lore.kernel.org/r/20240206-for-netnext-mt7530-improvements-2-v5-5-d7d92a185cb1@arinc9.com
|
||
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||
---
|
||
drivers/net/dsa/mt7530.c | 36 ++----------------------------------
|
||
drivers/net/dsa/mt7530.h | 3 ---
|
||
2 files changed, 2 insertions(+), 37 deletions(-)
|
||
|
||
--- a/drivers/net/dsa/mt7530.c
|
||
+++ b/drivers/net/dsa/mt7530.c
|
||
@@ -467,18 +467,6 @@ mt7530_setup_port6(struct dsa_switch *ds
|
||
core_set(priv, CORE_TRGMII_GSW_CLK_CG, REG_TRGMIICK_EN);
|
||
}
|
||
|
||
-static int
|
||
-mt7530_pad_clk_setup(struct dsa_switch *ds, phy_interface_t interface)
|
||
-{
|
||
- return 0;
|
||
-}
|
||
-
|
||
-static int
|
||
-mt7531_pad_setup(struct dsa_switch *ds, phy_interface_t interface)
|
||
-{
|
||
- return 0;
|
||
-}
|
||
-
|
||
static void
|
||
mt7531_pll_setup(struct mt7530_priv *priv)
|
||
{
|
||
@@ -2817,14 +2805,6 @@ static void mt7988_mac_port_get_caps(str
|
||
}
|
||
|
||
static int
|
||
-mt753x_pad_setup(struct dsa_switch *ds, const struct phylink_link_state *state)
|
||
-{
|
||
- struct mt7530_priv *priv = ds->priv;
|
||
-
|
||
- return priv->info->pad_setup(ds, state->interface);
|
||
-}
|
||
-
|
||
-static int
|
||
mt7530_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
|
||
phy_interface_t interface)
|
||
{
|
||
@@ -2989,8 +2969,6 @@ mt753x_phylink_mac_config(struct dsa_swi
|
||
if (priv->p6_interface == state->interface)
|
||
break;
|
||
|
||
- mt753x_pad_setup(ds, state);
|
||
-
|
||
if (mt753x_mac_config(ds, port, mode, state) < 0)
|
||
goto unsupported;
|
||
|
||
@@ -3307,11 +3285,6 @@ mt753x_conduit_state_change(struct dsa_s
|
||
mt7530_rmw(priv, MT7530_MFC, CPU_EN | CPU_PORT_MASK, val);
|
||
}
|
||
|
||
-static int mt7988_pad_setup(struct dsa_switch *ds, phy_interface_t interface)
|
||
-{
|
||
- return 0;
|
||
-}
|
||
-
|
||
static int mt7988_setup(struct dsa_switch *ds)
|
||
{
|
||
struct mt7530_priv *priv = ds->priv;
|
||
@@ -3375,7 +3348,6 @@ const struct mt753x_info mt753x_table[]
|
||
.phy_write_c22 = mt7530_phy_write_c22,
|
||
.phy_read_c45 = mt7530_phy_read_c45,
|
||
.phy_write_c45 = mt7530_phy_write_c45,
|
||
- .pad_setup = mt7530_pad_clk_setup,
|
||
.mac_port_get_caps = mt7530_mac_port_get_caps,
|
||
.mac_port_config = mt7530_mac_config,
|
||
},
|
||
@@ -3387,7 +3359,6 @@ const struct mt753x_info mt753x_table[]
|
||
.phy_write_c22 = mt7530_phy_write_c22,
|
||
.phy_read_c45 = mt7530_phy_read_c45,
|
||
.phy_write_c45 = mt7530_phy_write_c45,
|
||
- .pad_setup = mt7530_pad_clk_setup,
|
||
.mac_port_get_caps = mt7530_mac_port_get_caps,
|
||
.mac_port_config = mt7530_mac_config,
|
||
},
|
||
@@ -3399,7 +3370,6 @@ const struct mt753x_info mt753x_table[]
|
||
.phy_write_c22 = mt7531_ind_c22_phy_write,
|
||
.phy_read_c45 = mt7531_ind_c45_phy_read,
|
||
.phy_write_c45 = mt7531_ind_c45_phy_write,
|
||
- .pad_setup = mt7531_pad_setup,
|
||
.cpu_port_config = mt7531_cpu_port_config,
|
||
.mac_port_get_caps = mt7531_mac_port_get_caps,
|
||
.mac_port_config = mt7531_mac_config,
|
||
@@ -3412,7 +3382,6 @@ const struct mt753x_info mt753x_table[]
|
||
.phy_write_c22 = mt7531_ind_c22_phy_write,
|
||
.phy_read_c45 = mt7531_ind_c45_phy_read,
|
||
.phy_write_c45 = mt7531_ind_c45_phy_write,
|
||
- .pad_setup = mt7988_pad_setup,
|
||
.cpu_port_config = mt7988_cpu_port_config,
|
||
.mac_port_get_caps = mt7988_mac_port_get_caps,
|
||
.mac_port_config = mt7988_mac_config,
|
||
@@ -3442,9 +3411,8 @@ mt7530_probe_common(struct mt7530_priv *
|
||
/* Sanity check if these required device operations are filled
|
||
* properly.
|
||
*/
|
||
- if (!priv->info->sw_setup || !priv->info->pad_setup ||
|
||
- !priv->info->phy_read_c22 || !priv->info->phy_write_c22 ||
|
||
- !priv->info->mac_port_get_caps ||
|
||
+ if (!priv->info->sw_setup || !priv->info->phy_read_c22 ||
|
||
+ !priv->info->phy_write_c22 || !priv->info->mac_port_get_caps ||
|
||
!priv->info->mac_port_config)
|
||
return -EINVAL;
|
||
|
||
--- a/drivers/net/dsa/mt7530.h
|
||
+++ b/drivers/net/dsa/mt7530.h
|
||
@@ -734,8 +734,6 @@ struct mt753x_pcs {
|
||
* @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
|
||
- * @pad_setup: Holding the way setting up the bus pad for a certain
|
||
- * MAC 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
|
||
@@ -756,7 +754,6 @@ struct mt753x_info {
|
||
int regnum);
|
||
int (*phy_write_c45)(struct mt7530_priv *priv, int port, int devad,
|
||
int regnum, u16 val);
|
||
- int (*pad_setup)(struct dsa_switch *ds, phy_interface_t interface);
|
||
int (*cpu_port_config)(struct dsa_switch *ds, int port);
|
||
void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
|
||
struct phylink_config *config);
|