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>
This commit is contained in:

committed by
Leo Yu-Chi Liang

parent
21d5d5e55b
commit
a0f4e43c59
@@ -222,7 +222,7 @@ static int ftgmac100_phy_init(struct udevice *dev)
|
|||||||
struct phy_device *phydev;
|
struct phy_device *phydev;
|
||||||
int ret;
|
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);
|
phydev = dm_eth_phy_connect(dev);
|
||||||
else
|
else
|
||||||
phydev = phy_connect(priv->bus, priv->phy_addr, dev, priv->phy_mode);
|
phydev = phy_connect(priv->bus, priv->phy_addr, dev, priv->phy_mode);
|
||||||
|
Reference in New Issue
Block a user