Skip to content

Commit

Permalink
let fec_enet_mii_probe do the phy_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonf committed Apr 3, 2019
1 parent 81c3dee commit a043180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/fec_main.c
Expand Up @@ -2017,7 +2017,7 @@ static int fec_enet_mii_probe(struct net_device *ndev)
struct fec_enet_private *fep = netdev_priv(ndev);
struct phy_device *phy_dev = NULL;

#ifdef CONFIG_HAVE_KSZ9897
#if 0 // def CONFIG_HAVE_KSZ9897
netdev_err(ndev, ">>>>>>> %s:(%s):%d\n", __FILE__, __FUNCTION__, __LINE__);
phy_dev = ndev->phydev;
#else
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/freescale/ksz_fec.c
Expand Up @@ -124,6 +124,7 @@ static void prep_sw_dev(struct ksz_sw *sw, struct platform_device *pdev, int i,
fep->mii_bus->priv = fep;
fep->mii_bus->parent = &pdev->dev;
}
phy_detach(phydev);
} /* prep_sw_dev */

static int ksz_fec_sw_chk(struct fec_enet_private *fep)
Expand Down

0 comments on commit a043180

Please sign in to comment.