Skip to content

Commit 75104db

Browse files
lunndavem330
authored andcommitted
dsa: Remove phydev parameter from disable_port call
No current DSA driver makes use of the phydev parameter passed to the disable_port call. Remove it. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0f3b1cf commit 75104db

16 files changed

Lines changed: 23 additions & 32 deletions

File tree

‎drivers/net/dsa/b53/b53_common.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy)
543543
}
544544
EXPORT_SYMBOL(b53_enable_port);
545545

546-
void b53_disable_port(struct dsa_switch *ds, int port, struct phy_device *phy)
546+
void b53_disable_port(struct dsa_switch *ds, int port)
547547
{
548548
struct b53_device *dev = ds->priv;
549549
u8 reg;
@@ -963,7 +963,7 @@ static int b53_setup(struct dsa_switch *ds)
963963
if (dsa_is_cpu_port(ds, port))
964964
b53_enable_cpu_port(dev, port);
965965
else if (dsa_is_unused_port(ds, port))
966-
b53_disable_port(ds, port, NULL);
966+
b53_disable_port(ds, port);
967967
}
968968

969969
return ret;

‎drivers/net/dsa/b53/b53_priv.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds, int port);
356356
void b53_mirror_del(struct dsa_switch *ds, int port,
357357
struct dsa_mall_mirror_tc_entry *mirror);
358358
int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
359-
void b53_disable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
359+
void b53_disable_port(struct dsa_switch *ds, int port);
360360
void b53_brcm_hdr_setup(struct dsa_switch *ds, int port);
361361
void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable);
362362
int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy);

‎drivers/net/dsa/bcm_sf2.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ static int bcm_sf2_port_setup(struct dsa_switch *ds, int port,
221221
return b53_enable_port(ds, port, phy);
222222
}
223223

224-
static void bcm_sf2_port_disable(struct dsa_switch *ds, int port,
225-
struct phy_device *phy)
224+
static void bcm_sf2_port_disable(struct dsa_switch *ds, int port)
226225
{
227226
struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
228227
u32 reg;
@@ -241,7 +240,7 @@ static void bcm_sf2_port_disable(struct dsa_switch *ds, int port,
241240
if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1)
242241
bcm_sf2_gphy_enable_set(ds, false);
243242

244-
b53_disable_port(ds, port, phy);
243+
b53_disable_port(ds, port);
245244

246245
/* Power down the port memory */
247246
reg = core_readl(priv, CORE_MEM_PSM_VDD_CTRL);
@@ -692,7 +691,7 @@ static int bcm_sf2_sw_suspend(struct dsa_switch *ds)
692691
*/
693692
for (port = 0; port < ds->num_ports; port++) {
694693
if (dsa_is_user_port(ds, port) || dsa_is_cpu_port(ds, port))
695-
bcm_sf2_port_disable(ds, port, NULL);
694+
bcm_sf2_port_disable(ds, port);
696695
}
697696

698697
return 0;
@@ -788,7 +787,7 @@ static int bcm_sf2_sw_setup(struct dsa_switch *ds)
788787
else if (dsa_is_cpu_port(ds, port))
789788
bcm_sf2_imp_setup(ds, port);
790789
else
791-
bcm_sf2_port_disable(ds, port, NULL);
790+
bcm_sf2_port_disable(ds, port);
792791
}
793792

794793
b53_configure_vlan(ds);

‎drivers/net/dsa/lan9303-core.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,8 +1091,7 @@ static int lan9303_port_enable(struct dsa_switch *ds, int port,
10911091
return lan9303_enable_processing_port(chip, port);
10921092
}
10931093

1094-
static void lan9303_port_disable(struct dsa_switch *ds, int port,
1095-
struct phy_device *phy)
1094+
static void lan9303_port_disable(struct dsa_switch *ds, int port)
10961095
{
10971096
struct lan9303 *chip = ds->priv;
10981097

‎drivers/net/dsa/lantiq_gswip.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@ static int gswip_port_enable(struct dsa_switch *ds, int port,
480480
return 0;
481481
}
482482

483-
static void gswip_port_disable(struct dsa_switch *ds, int port,
484-
struct phy_device *phy)
483+
static void gswip_port_disable(struct dsa_switch *ds, int port)
485484
{
486485
struct gswip_priv *priv = ds->priv;
487486

@@ -549,7 +548,7 @@ static int gswip_setup(struct dsa_switch *ds)
549548

550549
/* disable port fetch/store dma on all ports */
551550
for (i = 0; i < priv->hw_info->max_ports; i++)
552-
gswip_port_disable(ds, i, NULL);
551+
gswip_port_disable(ds, i);
553552

554553
/* enable Switch */
555554
gswip_mdio_mask(priv, 0, GSWIP_MDIO_GLOB_ENABLE, GSWIP_MDIO_GLOB);

‎drivers/net/dsa/microchip/ksz_common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ int ksz_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy)
380380
}
381381
EXPORT_SYMBOL_GPL(ksz_enable_port);
382382

383-
void ksz_disable_port(struct dsa_switch *ds, int port, struct phy_device *phy)
383+
void ksz_disable_port(struct dsa_switch *ds, int port)
384384
{
385385
struct ksz_device *dev = ds->priv;
386386

‎drivers/net/dsa/microchip/ksz_common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void ksz_port_mdb_add(struct dsa_switch *ds, int port,
3535
int ksz_port_mdb_del(struct dsa_switch *ds, int port,
3636
const struct switchdev_obj_port_mdb *mdb);
3737
int ksz_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
38-
void ksz_disable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
38+
void ksz_disable_port(struct dsa_switch *ds, int port);
3939

4040
/* Common register access functions */
4141

‎drivers/net/dsa/mt7530.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,7 @@ mt7530_port_enable(struct dsa_switch *ds, int port,
729729
}
730730

731731
static void
732-
mt7530_port_disable(struct dsa_switch *ds, int port,
733-
struct phy_device *phy)
732+
mt7530_port_disable(struct dsa_switch *ds, int port)
734733
{
735734
struct mt7530_priv *priv = ds->priv;
736735

@@ -1301,7 +1300,7 @@ mt7530_setup(struct dsa_switch *ds)
13011300
if (dsa_is_cpu_port(ds, i))
13021301
mt7530_cpu_port_enable(priv, i);
13031302
else
1304-
mt7530_port_disable(ds, i, NULL);
1303+
mt7530_port_disable(ds, i);
13051304
}
13061305

13071306
/* Flush the FDB table */

‎drivers/net/dsa/mv88e6xxx/chip.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,8 +2388,7 @@ static int mv88e6xxx_port_enable(struct dsa_switch *ds, int port,
23882388
return err;
23892389
}
23902390

2391-
static void mv88e6xxx_port_disable(struct dsa_switch *ds, int port,
2392-
struct phy_device *phydev)
2391+
static void mv88e6xxx_port_disable(struct dsa_switch *ds, int port)
23932392
{
23942393
struct mv88e6xxx_chip *chip = ds->priv;
23952394

‎drivers/net/dsa/qca8k.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,7 @@ qca8k_port_enable(struct dsa_switch *ds, int port,
801801
}
802802

803803
static void
804-
qca8k_port_disable(struct dsa_switch *ds, int port,
805-
struct phy_device *phy)
804+
qca8k_port_disable(struct dsa_switch *ds, int port)
806805
{
807806
struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv;
808807

0 commit comments

Comments
 (0)