Skip to content

Commit af6b696

Browse files
zonquedavem330
authored andcommitted
net: phy: export genphy_config_init()
This enables other drivers to call this generic implementation, and then only do specific details on top of it. Signed-off-by: Daniel Mack <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6d45969 commit af6b696

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/net/phy/phy_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ int genphy_soft_reset(struct phy_device *phydev)
10671067
}
10681068
EXPORT_SYMBOL(genphy_soft_reset);
10691069

1070-
static int genphy_config_init(struct phy_device *phydev)
1070+
int genphy_config_init(struct phy_device *phydev)
10711071
{
10721072
int val;
10731073
u32 features;
@@ -1118,6 +1118,7 @@ static int gen10g_soft_reset(struct phy_device *phydev)
11181118
/* Do nothing for now */
11191119
return 0;
11201120
}
1121+
EXPORT_SYMBOL(genphy_config_init);
11211122

11221123
static int gen10g_config_init(struct phy_device *phydev)
11231124
{

include/linux/phy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@ static inline int phy_read_status(struct phy_device *phydev)
666666
return phydev->drv->read_status(phydev);
667667
}
668668

669+
int genphy_config_init(struct phy_device *phydev);
669670
int genphy_setup_forced(struct phy_device *phydev);
670671
int genphy_restart_aneg(struct phy_device *phydev);
671672
int genphy_config_aneg(struct phy_device *phydev);

0 commit comments

Comments
 (0)