• Alex Elder's avatar
    net: ipa: do not cache event ring state · 3f77c926
    Alex Elder authored
    An event ring's state only needs to be known when it is allocated,
    reset, or deallocated.  We check an event ring's state both before
    and after performing an event ring control command that changes
    its state.  These are only issued at startup and shutdown, so there
    is very little value in caching the state.
    
    Stop recording a copy of the channel's last known state, and instead
    fetch the true state from hardware whenever it's needed.  In such
    cases, *do* record the state in a local variable, in case an error
    message reports it (so the value reported is the value seen).
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    3f77c926
gsi.c 65.1 KB