diff options
author | Jacky Chou <jacky_chou@aspeedtech.com> | 2024-06-28 15:14:45 +0800 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-09-11 20:34:35 +0800 |
commit | a0f4e43c59ad046f5d09f1a96aa8dec35c963cfc (patch) | |
tree | f2d9f4d80b4e6a60d2d6e18c8bfe0c84a5b13204 | |
parent | 21d5d5e55be85d70c06c5bad0139837665ed4699 (diff) |
net: ftgmac100: Fixed NC-SI PHY device cannot get
The NC-SI interface does not need the MDIO bus and the
NC-SI PHY device cannot get from dm_eth_phy_connect.
Therefore, use phy_connect directly here.
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Acked-by: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r-- | drivers/net/ftgmac100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 853a9913d24..392016141c4 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -222,7 +222,7 @@ static int ftgmac100_phy_init(struct udevice *dev) struct phy_device *phydev; int ret; - if (IS_ENABLED(CONFIG_DM_MDIO)) + if (IS_ENABLED(CONFIG_DM_MDIO) && priv->phy_mode != PHY_INTERFACE_MODE_NCSI) phydev = dm_eth_phy_connect(dev); else phydev = phy_connect(priv->bus, priv->phy_addr, dev, priv->phy_mode); |