From: Choong Yong Liang <yong.liang.choong@intel.com>
Add phylink_pcs_neg_mode() declaration to the header file for other modules
to call the function.
Signed-off-by: Choong Yong Liang <yong.liang.choong@intel.com>
---
drivers/net/phy/phylink.c | 7 ++++---
include/linux/phylink.h | 3 +++
2 files changed, 7 insertions(+), 3 deletions(-)
@@ -1093,9 +1093,9 @@ static void phylink_pcs_an_restart(struct phylink *pl)
* Note: this is for cases where the PCS itself is involved in negotiation
* (e.g. Clause 37, SGMII and similar) not Clause 73.
*/
-static unsigned int phylink_pcs_neg_mode(unsigned int mode,
- phy_interface_t interface,
- const unsigned long *advertising)
+unsigned int phylink_pcs_neg_mode(unsigned int mode,
+ phy_interface_t interface,
+ const unsigned long *advertising)
{
unsigned int neg_mode;
@@ -1139,6 +1139,7 @@ static unsigned int phylink_pcs_neg_mode(unsigned int mode,
return neg_mode;
}
+EXPORT_SYMBOL_GPL(phylink_pcs_neg_mode);
static void phylink_major_config(struct phylink *pl, bool restart,
const struct phylink_link_state *state)
@@ -595,6 +595,9 @@ int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *);
int phylink_mii_ioctl(struct phylink *, struct ifreq *, int);
int phylink_speed_down(struct phylink *pl, bool sync);
int phylink_speed_up(struct phylink *pl);
+unsigned int phylink_pcs_neg_mode(unsigned int mode,
+ phy_interface_t interface,
+ const unsigned long *advertising);
#define phylink_zero(bm) \
bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)