net: ipa: move ipa_suspend_handler()
authorAlex Elder <elder@linaro.org>
Wed, 4 Aug 2021 15:36:25 +0000 (10:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:27:05 +0000 (11:27 +0100)
commitafe1baa82db2b7345944b042a6c84757639a4283
tree439cf68204228c9b8b3c997a564bdb77ac8972a9
parent73ff316dac17accc05e28ae4939426044fb437ec
net: ipa: move ipa_suspend_handler()

Move ipa_suspend_handler() into "ipa_clock.c" from "ipa_main.c", to
group with the reset of the suspend/resume code.  This IPA interrupt
is triggered if an IPA RX endpoint is suspended but has a packet to
be delivered.

Introduce ipa_power_setup() and ipa_power_teardown() to add and
remove the handler for the IPA SUSPEND interrupt at the same place
as before, while allowing the handler to remain private.

The "power" naming convention will be adopted elsewhere in this
file as well (soon).

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