net: dsa: mt753x: remove mt753x_phylink_pcs_link_up()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 27 Sep 2023 12:13:56 +0000 (13:13 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Oct 2023 19:20:50 +0000 (12:20 -0700)
commitd5a590b1b614d99a147cb3ec71954d96ef1a0834
treecc007f8a0bea6c325f598d8b715d14d75df0e006
parent00f3696f7555d0890ae07b635e6ccbf39fd2eb3a
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.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/E1qlTQS-008BWe-Va@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mt7530.c