Commit 1ed19d5e authored by Jean-Claude BAU's avatar Jean-Claude BAU

Fix issue link going to down when ppsi was leaving the SLAVE state

The wrs_locking_reset() function was sending a reset command that was
making the port going down. This function just play with the timing mode
now.
parent 81ce39c8
......@@ -290,7 +290,6 @@ int wrs_locking_enable(struct pp_instance *ppi)
int wrs_locking_reset(struct pp_instance *ppi)
{
int ret=0, rval;
pp_diag(ppi, time, 1, "Reset locking\n");
......@@ -299,13 +298,6 @@ int wrs_locking_reset(struct pp_instance *ppi)
return -1;
}
WRS_ARCH_I(ppi)->timingModeLockingState=WRH_TM_LOCKING_STATE_LOCKING;
ret = minipc_call(hal_ch, DEFAULT_TO, &__rpcdef_lock_cmd,
&rval, ppi->iface_name, HEXP_LOCK_CMD_RESET, 0);
if ((ret < 0) || (rval < 0)) {
COMM_ERR_MSG(ppi);
return WRH_SPLL_ERROR;
}
return WRH_SPLL_OK;
}
......
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