net: ipa: use dev PM wakeirq handling
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 27 Jan 2023 20:27:58 +0000 (20:27 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 31 Jan 2023 14:24:38 +0000 (15:24 +0100)
commitdf54fde451db9534f2fd9838d4c7d2a10ccfb6e8
tree0c8c0587a3593b8c8b77c76f5d9e4a9797f147d5
parent562c65486cf197f28f84283979c076601eb50042
net: ipa: use dev PM wakeirq handling

Replace the enable_irq_wake() call with one to dev_pm_set_wake_irq()
instead. This will let the dev PM framework automatically manage the
the wakeup capability of the ipa IRQ and ensure that userspace requests
to enable/disable wakeup for the IPA via sysfs are respected.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20230127202758.2913612-1-caleb.connolly@linaro.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ipa/ipa_interrupt.c