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
f53bf253
Commit
f53bf253
authored
Aug 26, 2019
by
Maciej Lipinski
Committed by
Jean-Claude BAU
Oct 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HAL] check earlyLinkUP only if LPDC is supported
parent
1b15247b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
hal_port_fsm_rx.c
userspace/wrsw_hal/hal_port_fsm_rx.c
+8
-4
No files found.
userspace/wrsw_hal/hal_port_fsm_rx.c
View file @
f53bf253
...
...
@@ -290,11 +290,15 @@ static int _hal_port_rx_setup_state_validate(void *vpfg, int eventMsk, int isNew
*
*/
static
int
_hal_port_rx_setup_state_done
(
void
*
vpfg
,
int
eventMsk
,
int
isNewState
)
{
struct
hal_port_state
*
ps
=
((
halPortFsmGen_t
*
)
vpfg
)
->
ps
;
if
(
!
_isHalRxSetupEventEarlyLinkUp
(
eventMsk
))
{
// Port went done
_fireState
(
vpfg
,
HAL_PORT_RX_SETUP_STATE_START
);
return
0
;
/* earlyLinkUp detection only if LPDC support */
if
(
ps
->
lpdc
.
isSupported
)
{
if
(
!
_isHalRxSetupEventEarlyLinkUp
(
eventMsk
))
{
// Port went done
_fireState
(
vpfg
,
HAL_PORT_RX_SETUP_STATE_START
);
return
0
;
}
}
if
(
_isHalRxSetupEventLinkDown
(
eventMsk
)
)
{
_fireState
(
vpfg
,
HAL_PORT_RX_SETUP_STATE_START
);
...
...
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