Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af6b6967 authored by Daniel Mack's avatar Daniel Mack Committed by David S. Miller
Browse files

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: default avatarDaniel Mack <zonque@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d459690
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1067,7 +1067,7 @@ int genphy_soft_reset(struct phy_device *phydev)
}
EXPORT_SYMBOL(genphy_soft_reset);

static int genphy_config_init(struct phy_device *phydev)
int genphy_config_init(struct phy_device *phydev)
{
	int val;
	u32 features;
@@ -1118,6 +1118,7 @@ static int gen10g_soft_reset(struct phy_device *phydev)
	/* Do nothing for now */
	return 0;
}
EXPORT_SYMBOL(genphy_config_init);

static int gen10g_config_init(struct phy_device *phydev)
{
+1 −0
Original line number Diff line number Diff line
@@ -666,6 +666,7 @@ static inline int phy_read_status(struct phy_device *phydev)
	return phydev->drv->read_status(phydev);
}

int genphy_config_init(struct phy_device *phydev);
int genphy_setup_forced(struct phy_device *phydev);
int genphy_restart_aneg(struct phy_device *phydev);
int genphy_config_aneg(struct phy_device *phydev);