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
86
Issues
86
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
3768695e
Commit
3768695e
authored
Sep 04, 2019
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HAL] remove unused define/state of rx_setup FSM and add warning
parent
c622140d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
hal_port_fsm_rx.c
userspace/wrsw_hal/hal_port_fsm_rx.c
+6
-1
hal_port_fsm_rxP.h
userspace/wrsw_hal/hal_port_fsm_rxP.h
+0
-1
No files found.
userspace/wrsw_hal/hal_port_fsm_rx.c
View file @
3768695e
...
...
@@ -129,8 +129,13 @@ static int _hal_port_rx_setup_state_start(void *vpfg, int eventMsk, int isNewSta
// prevent RX FSM from starting up when the TX path calibration of the port is
// not completed.
if
(
ps
->
lpdc
.
txSetupStates
.
state
!=
HAL_PORT_TX_SETUP_STATE_DONE
)
if
(
ps
->
lpdc
.
txSetupStates
.
state
!=
HAL_PORT_TX_SETUP_STATE_DONE
)
{
pr_warning
(
"rx_setup FSM is attempted to be started before the"
"tx_setup FSM has finished (in state %d) - this should"
"never happen, in theory.
\n
"
,
ps
->
lpdc
.
txSetupStates
.
state
);
return
0
;
}
if
(
ps
->
lpdc
.
isSupported
)
{
// LPDC support
...
...
userspace/wrsw_hal/hal_port_fsm_rxP.h
View file @
3768695e
...
...
@@ -15,7 +15,6 @@
typedef
enum
{
HAL_PORT_RX_SETUP_STATE_START
=
0
,
HAL_PORT_RX_SETUP_STATE_CALIB_NO_LPDC
,
HAL_PORT_RX_SETUP_STATE_RESET_PCS
,
HAL_PORT_RX_SETUP_STATE_WAIT_LOCK
,
HAL_PORT_RX_SETUP_STATE_VALIDATE
,
...
...
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