projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772c476
)
net: dsa: mt7530: update PCS driver to use neg_mode
author
Russell King (Oracle)
<rmk+kernel@armlinux.org.uk>
Fri, 16 Jun 2023 12:07:29 +0000
(13:07 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 23 Jun 2023 02:41:02 +0000
(19:41 -0700)
Update mt7530's embedded PCS driver to use neg_mode, even though it
makes no use of it or the "mode" argument. This makes the driver
consistent with converted drivers.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link:
https://lore.kernel.org/r/E1qA8Ej-00EaGR-Fk@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mt7530.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mt7530.c
b/drivers/net/dsa/mt7530.c
index 7e773c4ba04638dd5f27b627a522c12391f856f9..38b3c6dda386ad6855255fa29c1e0bc400ebe1d6 100644
(file)
--- a/
drivers/net/dsa/mt7530.c
+++ b/
drivers/net/dsa/mt7530.c
@@
-3005,7
+3005,7
@@
static void mt7530_pcs_get_state(struct phylink_pcs *pcs,
state->pause |= MLO_PAUSE_TX;
}
-static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
+static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int
neg_
mode,
phy_interface_t interface,
const unsigned long *advertising,
bool permit_pause_to_mac)
@@
-3033,6
+3033,7
@@
mt753x_setup(struct dsa_switch *ds)
/* Initialise the PCS devices */
for (i = 0; i < priv->ds->num_ports; i++) {
priv->pcs[i].pcs.ops = priv->info->pcs_ops;
+ priv->pcs[i].pcs.neg_mode = true;
priv->pcs[i].priv = priv;
priv->pcs[i].port = i;
}