From 4d5ebe85ce76d42c79c8c5832b3b04edc11aabc6 Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Sat, 6 Dec 2014 12:57:55 +0530 Subject: [PATCH] zynqmp: gem: Dont detect phy if already detected Dont try to detect phy again if already detected This issue with detecting the phy again is occuring on ep108 boards and hence this patch is added as temporary hack for that issue. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 54a6fc38963..527552c23cc 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -348,6 +348,9 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis) priv->init++; } +#ifdef XILINX_ZYNQMP + if (!priv->init) { +#endif phy_detection(dev); /* interface - look at tsec */ @@ -381,6 +384,9 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis) clk_rate = ZYNQ_GEM_FREQUENCY_10; break; } +#ifdef XILINX_ZYNQMP + } +#endif #ifndef XILINX_ZYNQMP /* Change the rclk and clk only not using EMIO interface */ -- 2.47.3