File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,14 @@ static const int phy_eee_cap1_features_array[] = {
148148__ETHTOOL_DECLARE_LINK_MODE_MASK (phy_eee_cap1_features ) __ro_after_init ;
149149EXPORT_SYMBOL_GPL (phy_eee_cap1_features );
150150
151+ static const int phy_eee_cap2_features_array [] = {
152+ ETHTOOL_LINK_MODE_2500baseT_Full_BIT ,
153+ ETHTOOL_LINK_MODE_5000baseT_Full_BIT ,
154+ };
155+
156+ __ETHTOOL_DECLARE_LINK_MODE_MASK (phy_eee_cap2_features ) __ro_after_init ;
157+ EXPORT_SYMBOL_GPL (phy_eee_cap2_features );
158+
151159static void features_init (void )
152160{
153161 /* 10/100 half/full*/
@@ -232,6 +240,9 @@ static void features_init(void)
232240 linkmode_set_bit_array (phy_eee_cap1_features_array ,
233241 ARRAY_SIZE (phy_eee_cap1_features_array ),
234242 phy_eee_cap1_features );
243+ linkmode_set_bit_array (phy_eee_cap2_features_array ,
244+ ARRAY_SIZE (phy_eee_cap2_features_array ),
245+ phy_eee_cap2_features );
235246
236247}
237248
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ extern __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_10gbit_features) __ro_after_init;
5454extern __ETHTOOL_DECLARE_LINK_MODE_MASK (phy_10gbit_fec_features ) __ro_after_init ;
5555extern __ETHTOOL_DECLARE_LINK_MODE_MASK (phy_10gbit_full_features ) __ro_after_init ;
5656extern __ETHTOOL_DECLARE_LINK_MODE_MASK (phy_eee_cap1_features ) __ro_after_init ;
57+ extern __ETHTOOL_DECLARE_LINK_MODE_MASK (phy_eee_cap2_features ) __ro_after_init ;
5758
5859#define PHY_BASIC_FEATURES ((unsigned long *)&phy_basic_features)
5960#define PHY_BASIC_T1_FEATURES ((unsigned long *)&phy_basic_t1_features)
@@ -65,6 +66,7 @@ extern __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_eee_cap1_features) __ro_after_init;
6566#define PHY_10GBIT_FEC_FEATURES ((unsigned long *)&phy_10gbit_fec_features)
6667#define PHY_10GBIT_FULL_FEATURES ((unsigned long *)&phy_10gbit_full_features)
6768#define PHY_EEE_CAP1_FEATURES ((unsigned long *)&phy_eee_cap1_features)
69+ #define PHY_EEE_CAP2_FEATURES ((unsigned long *)&phy_eee_cap2_features)
6870
6971extern const int phy_basic_ports_array [3 ];
7072extern const int phy_fibre_port_array [1 ];
You can’t perform that action at this time.
0 commit comments