]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit163f981dbad1b9070867ba6e96d1c9b6b13b865e
tree439cf68204228c9b8b3c997a564bdb77ac8972a9
parentedead1e91e46f2127ae9bf338114cbdbbbeb5371
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