Commit 188ff18f authored by Bin Meng's avatar Bin Meng Committed by Priyanka Jain
Browse files

net: phy: xilinx: Drop #ifdef CONFIG_DM_ETH around phy_connect_gmii2rgmii()

At present phy_connect_gmii2rgmii() is implemented using a DM API
dev_of_offset() hence it cannot support a non-DM configuration.
Remove the non-DM version prototype of phy_connect_gmii2rgmii()
and make the driver depend on CONFIG_DM_ETH.
Signed-off-by: Bin Meng's avatarBin Meng <>
Acked-by: default avatarMichal Simek <>
Reviewed-by: Ramon Fried's avatarRamon Fried <>
Reviewed-by: default avatarVladimir Oltean <>
Reviewed-by: Priyanka Jain's avatarPriyanka Jain <>
parent 6c993815
......@@ -292,6 +292,7 @@ config PHY_XILINX
bool "Xilinx GMII to RGMII Ethernet PHYs support"
depends on DM_ETH
This adds support for Xilinx GMII to RGMII IP core. This IP acts
as bridge between MAC connected over GMII and external phy that
......@@ -942,15 +942,9 @@ void phy_connect_dev(struct phy_device *phydev, struct eth_device *dev)
static struct phy_device *phy_connect_gmii2rgmii(struct mii_dev *bus,
struct udevice *dev,
phy_interface_t interface)
static struct phy_device *phy_connect_gmii2rgmii(struct mii_dev *bus,
struct eth_device *dev,
phy_interface_t interface)
struct phy_device *phydev = NULL;
ofnode node = dev_ofnode(dev);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment