Skip to content

Commit

Permalink
net: phy: add delay to fix ADI1300 is not detected
Browse files Browse the repository at this point in the history
This patch fixes the following message error:
  Net:   Could not get PHY for FEC0: addr 4

Signed-off-by: FrancescoFerraro <francesco.f@variscite.com>
  • Loading branch information
FrancescoFerraro committed Feb 18, 2022
1 parent 0e94127 commit 0cdd02a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/phy/phy.c
Expand Up @@ -1016,6 +1016,7 @@ struct phy_device *phy_connect(struct mii_dev *bus, int addr,
phydev = phy_connect_gmii2rgmii(bus, dev, interface);
#endif

mdelay(20);
if (!phydev)
phydev = phy_find_by_mask(bus, mask, interface);

Expand Down

0 comments on commit 0cdd02a

Please sign in to comment.