aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2023-03-28 23:12:47 +0200
committerTom Rini <trini@konsulko.com>2023-05-05 17:48:44 -0400
commit8c0ed61390533410fef275c2bc86acc5ac35fa4b (patch)
treeda61d989ac20c2e7ac220c70340a15459415d043 /drivers/net/phy
parent29003429617945250e2cafed985f8221d4b46832 (diff)
downloadu-boot-8c0ed61390533410fef275c2bc86acc5ac35fa4b.zip
u-boot-8c0ed61390533410fef275c2bc86acc5ac35fa4b.tar.gz
u-boot-8c0ed61390533410fef275c2bc86acc5ac35fa4b.tar.bz2
phy: broadcom: don't duplicate genphy_startup
Functionally, bcm_cygnus_startup() is an exact copy of genphy_startup(). Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/broadcom.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index ea98cfc..36c70da 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -162,18 +162,6 @@ static int bcm5482_config(struct phy_device *phydev)
return 0;
}
-static int bcm_cygnus_startup(struct phy_device *phydev)
-{
- int ret;
-
- /* Read the Status (2x to make sure link is right) */
- ret = genphy_update_link(phydev);
- if (ret)
- return ret;
-
- return genphy_parse_link(phydev);
-}
-
static void bcm_cygnus_afe(struct phy_device *phydev)
{
/* ensures smdspclk is enabled */
@@ -359,6 +347,6 @@ U_BOOT_PHY_DRIVER(bcm_cygnus) = {
.mask = 0xfffff0,
.features = PHY_GBIT_FEATURES,
.config = &bcm_cygnus_config,
- .startup = &bcm_cygnus_startup,
+ .startup = &genphy_startup,
.shutdown = &genphy_shutdown,
};