Commit 4f596153 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

hal: on link down reset rx transceiver to prevent frames flowing to ports that are down

parent 9075be6a
......@@ -205,6 +205,14 @@ static int port_fsm_state_link_down(fsm_t *fsm, int eventMsk, int isNewState) {
led_set_wrmode(ps->hw_index, SFP_LED_WRMODE_OFF);
led_set_synched(ps->hw_index, 0);
pcs_writel(ps, MDIO_LPC_CTRL_RESET_RX |
MDIO_LPC_CTRL_TX_ENABLE |
MDIO_LPC_CTRL_DMTD_SOURCE_RXRECCLK,
MDIO_LPC_CTRL);
shw_udelay(1);
pcs_writel(ps, MDIO_LPC_CTRL_TX_ENABLE |
MDIO_LPC_CTRL_DMTD_SOURCE_RXRECCLK,
MDIO_LPC_CTRL);
}
/* if final state reached for tx setup state machine then
......
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