• Alessandro Rubini's avatar
    wr-servo: move WAIT_SYNC_IDLE state to a flag · f3d427ee
    Alessandro Rubini authored
    This temporary wr-servo state, with the hack of next_state is not
    really clean. I took a while to understand it, and this tries to make
    it clearer for my fellow developer.
    
    When we change state by commanding hardware, we must wait for hw to be
    done with the change, and this is better a flag than another state.
    
    While making this clean, the commit stresses the fact that we loose
    one wr-servo iteration every two of them.  Unfortunately, the trivial
    fix I tried some time ago doesn't actually work (the slave won't
    sync), so the behaviour remains unchanged by this commit, but the
    problem is not clearly visible in code and comments, so we may fix it
    "the real way" later on.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    f3d427ee
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...