@@ -537,12 +537,6 @@ static int aqcs109_config_init(struct phy_device *phydev)
537
537
if (!ret )
538
538
aqr107_chip_info (phydev );
539
539
540
- /* AQCS109 belongs to a chip family partially supporting 10G and 5G.
541
- * PMA speed ability bits are the same for all members of the family,
542
- * AQCS109 however supports speeds up to 2.5G only.
543
- */
544
- phy_set_max_speed (phydev , SPEED_2500 );
545
-
546
540
return aqr107_set_downshift (phydev , MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT );
547
541
}
548
542
@@ -744,6 +738,18 @@ static int aqr115c_get_features(struct phy_device *phydev)
744
738
return 0 ;
745
739
}
746
740
741
+ static int aqr111_get_features (struct phy_device * phydev )
742
+ {
743
+ /* PHY supports speeds up to 5G with autoneg. PMA capabilities
744
+ * are not useful.
745
+ */
746
+ aqr115c_get_features (phydev );
747
+ linkmode_set_bit (ETHTOOL_LINK_MODE_5000baseT_Full_BIT ,
748
+ phydev -> supported );
749
+
750
+ return 0 ;
751
+ }
752
+
747
753
static int aqr113c_config_init (struct phy_device * phydev )
748
754
{
749
755
int ret ;
@@ -780,15 +786,6 @@ static int aqr107_probe(struct phy_device *phydev)
780
786
return aqr_hwmon_probe (phydev );
781
787
}
782
788
783
- static int aqr111_config_init (struct phy_device * phydev )
784
- {
785
- /* AQR111 reports supporting speed up to 10G,
786
- * however only speeds up to 5G are supported.
787
- */
788
- phy_set_max_speed (phydev , SPEED_5000 );
789
-
790
- return aqr107_config_init (phydev );
791
- }
792
789
793
790
static struct phy_driver aqr_driver [] = {
794
791
{
@@ -866,6 +863,7 @@ static struct phy_driver aqr_driver[] = {
866
863
.get_sset_count = aqr107_get_sset_count ,
867
864
.get_strings = aqr107_get_strings ,
868
865
.get_stats = aqr107_get_stats ,
866
+ .get_features = aqr115c_get_features ,
869
867
.link_change_notify = aqr107_link_change_notify ,
870
868
.led_brightness_set = aqr_phy_led_brightness_set ,
871
869
.led_hw_is_supported = aqr_phy_led_hw_is_supported ,
@@ -878,7 +876,7 @@ static struct phy_driver aqr_driver[] = {
878
876
.name = "Aquantia AQR111" ,
879
877
.probe = aqr107_probe ,
880
878
.get_rate_matching = aqr107_get_rate_matching ,
881
- .config_init = aqr111_config_init ,
879
+ .config_init = aqr107_config_init ,
882
880
.config_aneg = aqr_config_aneg ,
883
881
.config_intr = aqr_config_intr ,
884
882
.handle_interrupt = aqr_handle_interrupt ,
@@ -890,6 +888,7 @@ static struct phy_driver aqr_driver[] = {
890
888
.get_sset_count = aqr107_get_sset_count ,
891
889
.get_strings = aqr107_get_strings ,
892
890
.get_stats = aqr107_get_stats ,
891
+ .get_features = aqr111_get_features ,
893
892
.link_change_notify = aqr107_link_change_notify ,
894
893
.led_brightness_set = aqr_phy_led_brightness_set ,
895
894
.led_hw_is_supported = aqr_phy_led_hw_is_supported ,
@@ -902,7 +901,7 @@ static struct phy_driver aqr_driver[] = {
902
901
.name = "Aquantia AQR111B0" ,
903
902
.probe = aqr107_probe ,
904
903
.get_rate_matching = aqr107_get_rate_matching ,
905
- .config_init = aqr111_config_init ,
904
+ .config_init = aqr107_config_init ,
906
905
.config_aneg = aqr_config_aneg ,
907
906
.config_intr = aqr_config_intr ,
908
907
.handle_interrupt = aqr_handle_interrupt ,
@@ -914,6 +913,7 @@ static struct phy_driver aqr_driver[] = {
914
913
.get_sset_count = aqr107_get_sset_count ,
915
914
.get_strings = aqr107_get_strings ,
916
915
.get_stats = aqr107_get_stats ,
916
+ .get_features = aqr111_get_features ,
917
917
.link_change_notify = aqr107_link_change_notify ,
918
918
.led_brightness_set = aqr_phy_led_brightness_set ,
919
919
.led_hw_is_supported = aqr_phy_led_hw_is_supported ,
@@ -1023,7 +1023,7 @@ static struct phy_driver aqr_driver[] = {
1023
1023
.name = "Aquantia AQR114C" ,
1024
1024
.probe = aqr107_probe ,
1025
1025
.get_rate_matching = aqr107_get_rate_matching ,
1026
- .config_init = aqr111_config_init ,
1026
+ .config_init = aqr107_config_init ,
1027
1027
.config_aneg = aqr_config_aneg ,
1028
1028
.config_intr = aqr_config_intr ,
1029
1029
.handle_interrupt = aqr_handle_interrupt ,
@@ -1035,6 +1035,7 @@ static struct phy_driver aqr_driver[] = {
1035
1035
.get_sset_count = aqr107_get_sset_count ,
1036
1036
.get_strings = aqr107_get_strings ,
1037
1037
.get_stats = aqr107_get_stats ,
1038
+ .get_features = aqr111_get_features ,
1038
1039
.link_change_notify = aqr107_link_change_notify ,
1039
1040
.led_brightness_set = aqr_phy_led_brightness_set ,
1040
1041
.led_hw_is_supported = aqr_phy_led_hw_is_supported ,
0 commit comments