Alex Elder 33a153100b 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>
2021-11-23 12:06:40 +00:00
..
2021-04-09 20:57:26 -07:00
2020-07-13 17:11:53 -07:00
2021-08-22 09:44:17 +01:00
2021-08-22 09:44:17 +01:00
2021-08-22 09:44:17 +01:00
2021-07-26 23:09:18 +01:00
2021-08-22 09:44:17 +01:00
2021-08-22 09:44:17 +01:00
2021-07-26 23:09:18 +01:00
2021-07-26 23:09:18 +01:00
2021-06-11 14:13:18 -07:00
2021-06-11 14:13:18 -07:00
2021-08-22 09:44:17 +01:00
2021-08-22 09:44:17 +01:00
2021-06-11 14:13:18 -07:00
2021-08-22 09:44:17 +01:00
2021-10-07 16:51:57 +02:00
2021-08-22 09:44:17 +01:00