net: dsa: mt753x: remove mt753x_phylink_pcs_link_up()
Subsystems (5)
PATCH 1/1 net: dsa: mt753x: remove mt753x_phylink_pcs_link_up()
Remove the mt753x_phylink_pcs_link_up() function for two reasons:
1) priv->pcs[i].pcs.neg_mode is set true, meaning it doesn't take a MLO_AN_FIXED anymore, but one of PHYLINK_PCS_NEG_*. However, this is inconsequential due to...
2) priv->pcs[port].pcs.ops is always initialised to point at mt7530_pcs_ops, which does not have a pcs_link_up() member.
So, let's remove mt753x_phylink_pcs_link_up() entirely.
--- drivers/net/dsa/mt7530.c | 11 ----------- 1 file changed, 11 deletions(-)
drivers/net/dsa/mt7530.c +0 -11
@@ -2824,15 +2824,6 @@ static void mt753x_phylink_mac_link_down(struct dsa_switch *ds, int port,mt7530_clear (priv,MT7530_PMCR_P (port),PMCR_LINK_SETTINGS_MASK ); } -static void mt753x_phylink_pcs_link_up (struct phylink_pcs *pcs, -unsigned int mode, -phy_interface_t interface, -int speed,int duplex) -{ -if (pcs->ops->pcs_link_up) - pcs->ops->pcs_link_up (pcs, mode, interface, speed, duplex); -} - static void mt753x_phylink_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface,
@@ -2921,8 +2912,6 @@ mt7531_cpu_port_config(struct dsa_switch *ds, int port)return ret;mt7530_write (priv,MT7530_PMCR_P (port),PMCR_CPU_PORT_SETTING (priv->id)); -mt753x_phylink_pcs_link_up (&priv->pcs[port].pcs,MLO_AN_FIXED , - interface, speed,DUPLEX_FULL );mt753x_phylink_mac_link_up (ds, port,MLO_AN_FIXED , interface,NULL , speed,DUPLEX_FULL , true, true);
Signature · 1 line
2.30.2
Quoted 8 lines · Russell King (Oracle)
Remove the
mt753x_phylink_pcs_link_up()function for two reasons:1) priv->pcs[i].pcs.neg_mode is set true, meaning it doesn't take a
MLO_AN_FIXEDanymore, but one of PHYLINK_PCS_NEG_*. However, this is inconsequential due to...
2) priv->pcs[port].pcs.ops is always initialised to point atmt7530_pcs_ops, which does not have apcs_link_up()member.
Quoted 4 lines
So, let's remove
mt753x_phylink_pcs_link_up()entirely.Signed-off-by Russell King (Oracle) <[email protected]>---
Quoted 11 lines · Russell King (Oracle)
Remove the
mt753x_phylink_pcs_link_up()function for two reasons:1) priv->pcs[i].pcs.neg_mode is set true, meaning it doesn't take a
MLO_AN_FIXEDanymore, but one of PHYLINK_PCS_NEG_*. However, this is inconsequential due to...
2) priv->pcs[port].pcs.ops is always initialised to point atmt7530_pcs_ops, which does not have apcs_link_up()member.So, let's remove
mt753x_phylink_pcs_link_up()entirely.Signed-off-by Russell King (Oracle) <[email protected]>
Signature · 1 line
Florian
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 27 Sep 2023 13:13:56 +0100 you wrote:
Remove the
mt753x_phylink_pcs_link_up()function for two reasons:1) priv->pcs[i].pcs.neg_mode is set true, meaning it doesn't take a
MLO_AN_FIXEDanymore, but one of PHYLINK_PCS_NEG_*. However, this is inconsequential due to...
2) priv->pcs[port].pcs.ops is always initialised to point atmt7530_pcs_ops, which does not have apcs_link_up()member.[...]
Here is the summary with links:
- [net-next] net: dsa: mt753x: remove mt753x_phylink_pcs_link_up()
https://git.kernel.org/netdev/net-next/c/d5a590b1b614
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html