@@ -3391,10 +3391,11 @@ static phy_interface_t phylink_choose_sfp_interface(struct phylink *pl,
3391
3391
return interface ;
3392
3392
}
3393
3393
3394
- static void phylink_sfp_set_config (struct phylink * pl , u8 mode ,
3394
+ static void phylink_sfp_set_config (struct phylink * pl ,
3395
3395
unsigned long * supported ,
3396
3396
struct phylink_link_state * state )
3397
3397
{
3398
+ u8 mode = MLO_AN_INBAND ;
3398
3399
bool changed = false;
3399
3400
3400
3401
phylink_dbg (pl , "requesting link mode %s/%s with support %*pb\n" ,
@@ -3428,8 +3429,7 @@ static void phylink_sfp_set_config(struct phylink *pl, u8 mode,
3428
3429
phylink_mac_initial_config (pl , false);
3429
3430
}
3430
3431
3431
- static int phylink_sfp_config_phy (struct phylink * pl , u8 mode ,
3432
- struct phy_device * phy )
3432
+ static int phylink_sfp_config_phy (struct phylink * pl , struct phy_device * phy )
3433
3433
{
3434
3434
__ETHTOOL_DECLARE_LINK_MODE_MASK (support );
3435
3435
struct phylink_link_state config ;
@@ -3473,7 +3473,7 @@ static int phylink_sfp_config_phy(struct phylink *pl, u8 mode,
3473
3473
3474
3474
pl -> link_port = pl -> sfp_port ;
3475
3475
3476
- phylink_sfp_set_config (pl , mode , support , & config );
3476
+ phylink_sfp_set_config (pl , support , & config );
3477
3477
3478
3478
return 0 ;
3479
3479
}
@@ -3548,7 +3548,7 @@ static int phylink_sfp_config_optical(struct phylink *pl)
3548
3548
3549
3549
pl -> link_port = pl -> sfp_port ;
3550
3550
3551
- phylink_sfp_set_config (pl , MLO_AN_INBAND , pl -> sfp_support , & config );
3551
+ phylink_sfp_set_config (pl , pl -> sfp_support , & config );
3552
3552
3553
3553
return 0 ;
3554
3554
}
@@ -3619,19 +3619,9 @@ static void phylink_sfp_link_up(void *upstream)
3619
3619
phylink_enable_and_run_resolve (pl , PHYLINK_DISABLE_LINK );
3620
3620
}
3621
3621
3622
- /* The Broadcom BCM84881 in the Methode DM7052 is unable to provide a SGMII
3623
- * or 802.3z control word, so inband will not work.
3624
- */
3625
- static bool phylink_phy_no_inband (struct phy_device * phy )
3626
- {
3627
- return phy -> is_c45 && phy_id_compare (phy -> c45_ids .device_ids [1 ],
3628
- 0xae025150 , 0xfffffff0 );
3629
- }
3630
-
3631
3622
static int phylink_sfp_connect_phy (void * upstream , struct phy_device * phy )
3632
3623
{
3633
3624
struct phylink * pl = upstream ;
3634
- u8 mode ;
3635
3625
3636
3626
/*
3637
3627
* This is the new way of dealing with flow control for PHYs,
@@ -3642,17 +3632,12 @@ static int phylink_sfp_connect_phy(void *upstream, struct phy_device *phy)
3642
3632
*/
3643
3633
phy_support_asym_pause (phy );
3644
3634
3645
- if (phylink_phy_no_inband (phy ))
3646
- mode = MLO_AN_PHY ;
3647
- else
3648
- mode = MLO_AN_INBAND ;
3649
-
3650
3635
/* Set the PHY's host supported interfaces */
3651
3636
phy_interface_and (phy -> host_interfaces , phylink_sfp_interfaces ,
3652
3637
pl -> config -> supported_interfaces );
3653
3638
3654
3639
/* Do the initial configuration */
3655
- return phylink_sfp_config_phy (pl , mode , phy );
3640
+ return phylink_sfp_config_phy (pl , phy );
3656
3641
}
3657
3642
3658
3643
static void phylink_sfp_disconnect_phy (void * upstream ,
0 commit comments