Commit 620a62ea authored by Jean-Claude BAU's avatar Jean-Claude BAU

HAL: Disable SFP TX during TX calibration

Disable the SFP TX before starting the TX calibration and enable it
again when all ports are TX calibrated
parent d085ad04
......@@ -134,6 +134,9 @@ static int port_tx_setup_fsm_state_start(fsm_t *fsm, int eventMsk, int isNewStat
hal_tmg_set_mode(HAL_TIMING_MODE_FREE_MASTER);
ps->locked=0;
/* Disable TX light on this port */
shw_sfp_gpio_set(ps->hw_index, SFP_TX_DISABLE);
txSetupNotDone(ps);
if ( !ps->lpdc.isSupported ) {
// NO LPDC support
......@@ -322,6 +325,8 @@ static int port_tx_setup_fsm_state_wait_other_ports(fsm_t *fsm, int eventMsk, in
if (txSetupDoneOnAllPorts(ps) ) {
if (ps->lpdc.globalLpdc->numberOfLpdcPorts )
_write_tx_calibration_file(ps);
/* Enable TX light on this port */
shw_sfp_gpio_set(ps->hw_index, 0);
fsm_fire_state(fsm,HAL_PORT_TX_SETUP_STATE_DONE);
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment