@@ -3541,12 +3541,11 @@ static phy_interface_t phylink_choose_sfp_interface(struct phylink *pl,
3541
3541
return interface ;
3542
3542
}
3543
3543
3544
- static void phylink_sfp_set_config (struct phylink * pl ,
3545
- unsigned long * supported ,
3546
- struct phylink_link_state * state )
3544
+ static void phylink_sfp_set_config (struct phylink * pl , unsigned long * supported ,
3545
+ struct phylink_link_state * state ,
3546
+ bool changed )
3547
3547
{
3548
3548
u8 mode = MLO_AN_INBAND ;
3549
- bool changed = false;
3550
3549
3551
3550
phylink_dbg (pl , "requesting link mode %s/%s with support %*pb\n" ,
3552
3551
phylink_an_mode_str (mode ), phy_modes (state -> interface ),
@@ -3623,7 +3622,7 @@ static int phylink_sfp_config_phy(struct phylink *pl, struct phy_device *phy)
3623
3622
3624
3623
pl -> link_port = pl -> sfp_port ;
3625
3624
3626
- phylink_sfp_set_config (pl , support , & config );
3625
+ phylink_sfp_set_config (pl , support , & config , true );
3627
3626
3628
3627
return 0 ;
3629
3628
}
@@ -3698,7 +3697,7 @@ static int phylink_sfp_config_optical(struct phylink *pl)
3698
3697
3699
3698
pl -> link_port = pl -> sfp_port ;
3700
3699
3701
- phylink_sfp_set_config (pl , pl -> sfp_support , & config );
3700
+ phylink_sfp_set_config (pl , pl -> sfp_support , & config , false );
3702
3701
3703
3702
return 0 ;
3704
3703
}
0 commit comments