summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2016-02-21 15:46:14 +0530
committerMichal Simek <michal.simek@xilinx.com>2016-04-04 20:10:44 +0200
commit9c0da76220b4010b756c76d6fbbcf66d6b3d8dfd (patch)
tree35df170e97120b5d10cbc2e12dc63bb93cf983a7 /drivers/net
parent217185b3197ab8d90086ee975a017cea2da8f0bb (diff)
downloadu-boot-imx-9c0da76220b4010b756c76d6fbbcf66d6b3d8dfd.zip
u-boot-imx-9c0da76220b4010b756c76d6fbbcf66d6b3d8dfd.tar.gz
u-boot-imx-9c0da76220b4010b756c76d6fbbcf66d6b3d8dfd.tar.bz2
net: xilinx_axi: Use interface type instead of zero
Pass appropriate interface type to phy_connect instead of zero. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/xilinx_axi_emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index 81274ee..46b8d2d 100644
--- a/drivers/net/xilinx_axi_emac.c
+++ b/drivers/net/xilinx_axi_emac.c
@@ -251,7 +251,7 @@ static int axiemac_phy_init(struct udevice *dev)
}
/* Interface - look at tsec */
- phydev = phy_connect(priv->bus, priv->phyaddr, dev, 0);
+ phydev = phy_connect(priv->bus, priv->phyaddr, dev, priv->interface);
phydev->supported &= supported;
phydev->advertising = phydev->supported;