]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: gem: Dont detect phy if already detected
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Sat, 6 Dec 2014 07:27:55 +0000 (12:57 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 8 Dec 2014 09:43:42 +0000 (10:43 +0100)
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 <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c

index 54a6fc389638c82ddb28ddef62ce3f2963b99c97..527552c23cc292d47fa17bc89818461d69ced110 100644 (file)
@@ -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 */