Searched hist:a2003b303875b41542bad1c2e81800fdd4c27c29 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ipa/ |
H A D | gsi.h | diff a2003b303875b41542bad1c2e81800fdd4c27c29 Thu Apr 30 17:13:23 CDT 2020 Alex Elder <elder@linaro.org> net: ipa: do not cache channel state
It is possible for a GSI channel's state to be changed as a result of an action by a different execution environment. Specifically, the modem is able to issue a GSI generic command that causes a state change on a GSI channel associated with the AP.
A channel's state only needs to be known when a channel is allocated or deallocaed, started or stopped, or reset. So there is little value in caching the state anyway.
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: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | gsi.c | diff a2003b303875b41542bad1c2e81800fdd4c27c29 Thu Apr 30 17:13:23 CDT 2020 Alex Elder <elder@linaro.org> net: ipa: do not cache channel state
It is possible for a GSI channel's state to be changed as a result of an action by a different execution environment. Specifically, the modem is able to issue a GSI generic command that causes a state change on a GSI channel associated with the AP.
A channel's state only needs to be known when a channel is allocated or deallocaed, started or stopped, or reset. So there is little value in caching the state anyway.
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: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|