Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disentangle initialization from fault clearing.
Although leaving the INITIALIZING state and clearing the FAULTY state ASAP both result in a port entering the LISTENING state, still there is no benefit from conflating the two. In the FAULTY case, the current code actually skips the INITIALIZING state altogether. This patch separates the two cases resulting in two benefits. First, the check for ASAP fault status is only made when a fault is actually present, unlike the present unconditional check. Second, this change will allow us to cleanly support alternative state machines later on. Signed-off-by: Richard Cochran <[email protected]>