diff options
author | Tom Rini <trini@konsulko.com> | 2021-02-22 09:06:36 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-22 09:06:36 -0500 |
commit | 3c2ec6cb31522dfb3a35a6321768e3bb54ebe386 (patch) | |
tree | bb83bd3ca55ea5706831150af1d0ee97f54b8531 /net/mdio-uclass.c | |
parent | bbc0fcc302bab4521b1b87036c791ed2e8a33ea6 (diff) | |
parent | 44a7cc82b39b251af3e068cd6827bb35c5d71472 (diff) |
Merge branch '2021-02-21-mpc83xx-updates'
- mpc8379erdb DM_MMC conversion
- kmeter1 updates
- qe_uec fixes
Diffstat (limited to 'net/mdio-uclass.c')
-rw-r--r-- | net/mdio-uclass.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 697e5f838d9..5da984ca3f1 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -139,6 +139,12 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, struct ofnode_phandle_args phandle = {.node = ofnode_null()}; int i; + if (CONFIG_IS_ENABLED(PHY_FIXED) && + ofnode_valid(dev_read_subnode(ethdev, "fixed-link"))) { + phy = phy_connect(NULL, -1, ethdev, interface); + goto out; + } + for (i = 0; i < PHY_HANDLE_STR_CNT; i++) if (!dev_read_phandle_with_args(ethdev, phy_handle_str[i], NULL, 0, 0, &phandle)) @@ -168,6 +174,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, phy = dm_mdio_phy_connect(mdiodev, phy_addr, ethdev, interface); +out: if (phy) phy->node = phandle.node; |