]> 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)
commitf7d9e71b8013b7d389e2dcc73bdbfaa5cb9126f6
tree439cf68204228c9b8b3c997a564bdb77ac8972a9
parent3b52d839c6a06d752d4416e40cfbd31e6758738b
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