Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
4f596153
Commit
4f596153
authored
Apr 02, 2020
by
Grzegorz Daniluk
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal: on link down reset rx transceiver to prevent frames flowing to ports that are down
parent
9075be6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
hal_port_fsm.c
userspace/wrsw_hal/hal_port_fsm.c
+8
-0
No files found.
userspace/wrsw_hal/hal_port_fsm.c
View file @
4f596153
...
...
@@ -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
...
...
Grzegorz Daniluk
@greg.d
mentioned in issue
#5 (closed)
·
Jun 09, 2020
mentioned in issue
#5 (closed)
mentioned in issue #5
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment