]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: broadcom: don't duplicate genphy_startup
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 28 Mar 2023 21:12:47 +0000 (23:12 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 5 May 2023 21:48:44 +0000 (17:48 -0400)
Functionally, bcm_cygnus_startup() is an exact copy of
genphy_startup().

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
drivers/net/phy/broadcom.c

index ea98cfcc1b598820c0ab11831a534acf8ea31073..36c70da181ad21328bf4c6a38c06d71e18231092 100644 (file)
@@ -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,
 };