From faf5e9a346b80c028f03d032130913dacd224cc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= <tomasz.wlostowski@cern.ch>
Date: Sat, 25 May 2019 21:45:07 +0200
Subject: [PATCH] wr_endpoint: don't reset the endpoint on LOS! - it breaks
 LPDC

---
 modules/wr_endpoint/ep_1000basex_pcs.vhd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/wr_endpoint/ep_1000basex_pcs.vhd b/modules/wr_endpoint/ep_1000basex_pcs.vhd
index a41264f2..2e0e9bc6 100644
--- a/modules/wr_endpoint/ep_1000basex_pcs.vhd
+++ b/modules/wr_endpoint/ep_1000basex_pcs.vhd
@@ -6,7 +6,7 @@
 -- Author     : Tomasz WÅ‚ostowski
 -- Company    : CERN BE-CO-HT
 -- Created    : 2010-11-18
--- Last update: 2017-02-20
+-- Last update: 2019-04-18
 -- Platform   : FPGA-generic
 -- Standard   : VHDL'93
 -------------------------------------------------------------------------------
@@ -433,7 +433,8 @@ begin  -- rtl
   mdio_mcr_pdown <= mdio_mcr_pdown_cpu or (not link_ctr_i);
 
   -- keep PHY reset also when SFP reports LOS (DL)
-  serdes_rst_o <= (not pcs_reset_n) or mdio_mcr_pdown or serdes_sfp_los_i;
+  serdes_rst_o <= (not pcs_reset_n) or mdio_mcr_pdown
+                  ;
 
   U_MDIO_WB : ep_pcs_tbi_mdio_wb
     port map (
-- 
GitLab