diff options
author | T Karthik Reddy <t.karthik.reddy@xilinx.com> | 2022-03-30 11:07:55 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2022-04-05 15:13:13 +0200 |
commit | fc6e56283e141423797bbdcf39029c6e35bf5dc9 (patch) | |
tree | a53eb5f1b7ced032c6769e1ddf47e650b179e338 | |
parent | ccc8656f7fb51d0f11cc7cea6c05daf1e30f6bad (diff) | |
download | u-boot-fc6e56283e141423797bbdcf39029c6e35bf5dc9.zip u-boot-fc6e56283e141423797bbdcf39029c6e35bf5dc9.tar.gz u-boot-fc6e56283e141423797bbdcf39029c6e35bf5dc9.tar.bz2 |
net: zynq_gem: Move ethernet info print statement
As we are not reading the PHY address in case of CONFIG_ETH_PHY in plat
function, phy address always prints as -1. So move the ethernet info
print statement to probe function, to display proper phy address.
Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/f6efc6719d767b1bebe65987c22c6d52329f4225.1648631275.git.michal.simek@xilinx.com
-rw-r--r-- | drivers/net/zynq_gem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 168aabb..07de1bf 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -802,6 +802,10 @@ static int zynq_gem_probe(struct udevice *dev) return ret; } + printf("\nZYNQ GEM: %lx, mdio bus %lx, phyaddr %d, interface %s\n", + (ulong)priv->iobase, (ulong)priv->mdiobase, priv->phydev->addr, + phy_string_for_interface(priv->interface)); + return ret; err3: @@ -884,10 +888,6 @@ static int zynq_gem_of_to_plat(struct udevice *dev) priv->int_pcs = dev_read_bool(dev, "is-internal-pcspma"); - printf("\nZYNQ GEM: %lx, mdio bus %lx, phyaddr %d, interface %s\n", - (ulong)priv->iobase, (ulong)priv->mdiobase, priv->phyaddr, - phy_string_for_interface(priv->interface)); - priv->clk_en_info = dev_get_driver_data(dev); return 0; |