Skip to content

Commit cf9f607

Browse files
oleremdavem330
authored andcommitted
net: phy: export phy_check_valid() function
This function will be needed for genphy_c45_ethtool_get_eee() provided by next patch. Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 48fb199 commit cf9f607

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/net/phy/phy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ unsigned int phy_supported_speeds(struct phy_device *phy,
242242
*
243243
* Description: Returns true if there is a valid setting, false otherwise.
244244
*/
245-
static inline bool phy_check_valid(int speed, int duplex,
246-
unsigned long *features)
245+
bool phy_check_valid(int speed, int duplex, unsigned long *features)
247246
{
248247
return !!phy_lookup_setting(speed, duplex, features, true);
249248
}
249+
EXPORT_SYMBOL(phy_check_valid);
250250

251251
/**
252252
* phy_sanitize_settings - make sure the PHY is set to supported speed and duplex

include/linux/phy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,6 +1619,7 @@ int phy_start_aneg(struct phy_device *phydev);
16191619
int phy_aneg_done(struct phy_device *phydev);
16201620
int phy_speed_down(struct phy_device *phydev, bool sync);
16211621
int phy_speed_up(struct phy_device *phydev);
1622+
bool phy_check_valid(int speed, int duplex, unsigned long *features);
16221623

16231624
int phy_restart_aneg(struct phy_device *phydev);
16241625
int phy_reset_after_clk_enable(struct phy_device *phydev);

0 commit comments

Comments
 (0)