extcon: axp288: Add wakeup support
authorHans de Goede <hdegoede@redhat.com>
Mon, 23 Mar 2020 21:59:39 +0000 (22:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Apr 2020 07:08:43 +0000 (09:08 +0200)
commit899c38d9300014a38d8f60b7cd4f57e939b37274
tree084476c6c6581533bdb9846f532e3541aad1e5cd
parent4d60b72514c2dbedf145225ea8b9ed1efed3d116
extcon: axp288: Add wakeup support

commit 9c94553099efb2ba873cbdddfd416a8a09d0e5f1 upstream.

On devices with an AXP288, we need to wakeup from suspend when a charger
is plugged in, so that we can do charger-type detection and so that the
axp288-charger driver, which listens for our extcon events, can configure
the input-current-limit accordingly.

Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-axp288.c