net: ipa: distinguish system from runtime suspend
authorAlex Elder <elder@linaro.org>
Thu, 12 Aug 2021 19:50:31 +0000 (14:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Aug 2021 13:13:38 +0000 (14:13 +0100)
commitb9c532c11cab21d23a67c2d80a02a444c9e07ac6
treed14af7cc542ace0cb495ddc40d766782eb6ce4ce
parentd430fe4bac024812f50b8a2ad7a3639128c9db06
net: ipa: distinguish system from runtime suspend

Add a new flag that is set when the hardware is suspended due to a
system suspend operation, distingishing it from runtime suspend.
Use it in the SUSPEND IPA interrupt handler to determine whether to
trigger a system resume because of the event.  Define new suspend
and resume power management callback functions to set and clear the
new flag, respectively.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_clock.c