]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: sprd: Add wakeup capability for PMIC IRQ
authorBaolin Wang <baolin.wang7@gmail.com>
Tue, 18 Aug 2020 03:41:58 +0000 (11:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:15 +0000 (19:22 +0100)
commit8c676a84da1a43c132773e063ecf3f51c59fdf0c
tree12aefb3e9bb6b9310f30c9439015e7996e86fd09
parent8e3f68daf1dd9d23ee597608b7334a7b00e54dbc
mfd: sprd: Add wakeup capability for PMIC IRQ

commit a75bfc824a2d33f57ebdc003bfe6b7a9e11e9cb9 upstream.

When changing to use suspend-to-idle to save power, the PMIC irq can not
wakeup the system due to lack of wakeup capability, which will cause
the sub-irqs (such as power key) of the PMIC can not wake up the system.
Thus we can add the wakeup capability for PMIC irq to solve this issue,
as well as removing the IRQF_NO_SUSPEND flag to allow PMIC irq to be
a wakeup source.

Reported-by: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Tested-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/sprd-sc27xx-spi.c