net: phy: aquantia: rename and export aqr107_wait_reset_complete()
This function is quite generic in this driver and not limited to aqr107. We will use it outside its current compilation unit soon so rename it and declare it in the header. http://nvbugs/4980644 Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 663117327a39d1ad8be79d3c6451173c37e97c56) Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Vishwaroop A <va@nvidia.com> Acked-by: Noah Wager <noah.wager@canonical.com> Acked-by: Jacob Martin <jacob.martin@canonical.com> Signed-off-by: Noah Wager <noah.wager@canonical.com>
This commit is contained in:
committed by
Noah Wager
parent
93825d90da
commit
10e2aedc7c
@@ -123,5 +123,5 @@ static inline int aqr_hwmon_probe(struct phy_device *phydev) { return 0; }
|
||||
#endif
|
||||
|
||||
int aqr_firmware_load(struct phy_device *phydev);
|
||||
|
||||
int aqr_wait_reset_complete(struct phy_device *phydev);
|
||||
#endif /* AQUANTIA_H */
|
||||
|
||||
@@ -676,7 +676,7 @@ static int aqr107_set_tunable(struct phy_device *phydev,
|
||||
* The chip also provides a "reset completed" bit, but it's cleared after
|
||||
* read. Therefore function would time out if called again.
|
||||
*/
|
||||
static int aqr107_wait_reset_complete(struct phy_device *phydev)
|
||||
int aqr_wait_reset_complete(struct phy_device *phydev)
|
||||
{
|
||||
int val;
|
||||
|
||||
@@ -801,7 +801,7 @@ static int aqr107_config_init(struct phy_device *phydev)
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
ret = aqr107_wait_reset_complete(phydev);
|
||||
ret = aqr_wait_reset_complete(phydev);
|
||||
if (!ret)
|
||||
aqr107_chip_info(phydev);
|
||||
|
||||
@@ -864,7 +864,7 @@ static int aqcs109_config_init(struct phy_device *phydev)
|
||||
phydev->interface != PHY_INTERFACE_MODE_2500BASEX)
|
||||
return -ENODEV;
|
||||
|
||||
ret = aqr107_wait_reset_complete(phydev);
|
||||
ret = aqr_wait_reset_complete(phydev);
|
||||
if (!ret)
|
||||
aqr107_chip_info(phydev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user