gpio: mxc: release the parent IRQ in runtime suspend
authorShenwei Wang <shenwei.wang@nxp.com>
Wed, 9 Aug 2023 14:13:24 +0000 (09:13 -0500)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 11 Aug 2023 14:22:46 +0000 (16:22 +0200)
commit5f6d1998adeb5374ef248b5ba2e2a0c30ab0f60b
tree7e3cca737b0da4ef9dc5bdfe639f0f5a8f745d16
parentb7df0f340b64c543bb84c42698347f08b6e18fe2
gpio: mxc: release the parent IRQ in runtime suspend

Release the parent interrupt request during runtime suspend, allowing
the parent interrupt controller to enter runtime suspend if there are
no active users.

This change may not have a visible impact if the parent controller is
the GIC, but it can enable significant power savings for parent IRQ
controllers like IRQSteer inside a subsystem on i.MX8 SoCs. Releasing
the parent IRQ provides an opportunity for the subsystem to enter suspend
states if there are no active users.

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mxc.c