diff options
author | Alex Elder <elder@linaro.org> | 2021-11-22 18:15:54 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-23 12:06:40 +0000 |
commit | 33a153100bb3459479bd95d3259c2915b53fefa8 (patch) | |
tree | abd5a748eba0146b0d5b84c768690862ad957133 /mm/mremap.c | |
parent | bd08ee2315a30b42a422ad37a0600ab258b90a5b (diff) | |
download | linux-stable-33a153100bb3459479bd95d3259c2915b53fefa8.tar.gz linux-stable-33a153100bb3459479bd95d3259c2915b53fefa8.tar.bz2 linux-stable-33a153100bb3459479bd95d3259c2915b53fefa8.zip |
net: ipa: directly disable ipa-setup-ready interrupt
We currently maintain a "disabled" Boolean flag to determine whether
the "ipa-setup-ready" SMP2P IRQ handler does anything. That flag
must be accessed under protection of a mutex.
Instead, disable the SMP2P interrupt when requested, which prevents
the interrupt handler from ever being called. More importantly, it
synchronizes a thread disabling the interrupt with the completion of
the interrupt handler in case they run concurrently.
Use the IPA setup_complete flag rather than the disabled flag in the
handler to determine whether to ignore any interrupts arriving after
the first.
Rename the "disabled" flag to be "setup_disabled", to be specific
about its purpose.
Fixes: 530f9216a953 ("soc: qcom: ipa: AP/modem communications")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions