diff options
author | Arınç ÜNAL <arinc.unal@arinc9.com> | 2024-01-22 06:35:57 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-30 03:04:12 +0100 |
commit | 6537973f2a5dc3e83a424142366fd15a2b97199f (patch) | |
tree | f895530d57aee856295a96eb1359a015720e579d /drivers/net/dsa/mt7530.c | |
parent | net: dsa: mt7530: improve code path for setting up port 5 (diff) | |
download | linux-6537973f2a5dc3e83a424142366fd15a2b97199f.tar.xz linux-6537973f2a5dc3e83a424142366fd15a2b97199f.zip |
net: dsa: mt7530: do not set priv->p5_interface on mt7530_setup_port5()
Running mt7530_setup_port5() from mt7530_setup() used to handle all cases
of configuring port 5, including phylink.
Setting priv->p5_interface under mt7530_setup_port5() makes sure that
mt7530_setup_port5() from mt753x_phylink_mac_config() won't run.
The commit ("net: dsa: mt7530: improve code path for setting up port 5")
makes so that mt7530_setup_port5() from mt7530_setup() runs only on
non-phylink cases.
Get rid of unnecessarily setting priv->p5_interface under
mt7530_setup_port5() as port 5 phylink configuration will be done by
running mt7530_setup_port5() from mt753x_phylink_mac_config() now.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20240122-for-netnext-mt7530-improvements-1-v3-6-042401f2b279@arinc9.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/mt7530.c')
-rw-r--r-- | drivers/net/dsa/mt7530.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index b44f831c4621..07e8e5202b57 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -978,8 +978,6 @@ static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) dev_dbg(ds->dev, "Setup P5, HWTRAP=0x%x, intf_sel=%s, phy-mode=%s\n", val, p5_intf_modes(priv->p5_intf_sel), phy_modes(interface)); - priv->p5_interface = interface; - unlock_exit: mutex_unlock(&priv->reg_mutex); } |