]> git.baikalelectronics.ru Git - kernel.git/commit
usb: common: usb-conn-gpio: Allow wakeup from system suspend
authorPrashanth K <quic_prashk@quicinc.com>
Fri, 27 May 2022 06:49:06 +0000 (12:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 09:48:41 +0000 (11:48 +0200)
commit1b499d1b76c296c692e1b5775a3457b6124cbe63
tree17b26235ded90c4dac4739c7d1d38103d74444d1
parentdb85bc9c053f6b68a0fbe75e8a65ef7be60a37e6
usb: common: usb-conn-gpio: Allow wakeup from system suspend

Currently the VBUS/ID detection interrupts are disabled during system
suspend. So the USB cable connect/disconnect event can't wakeup the
system from low power mode. To allow this, we keep these interrupts
enabled and configure them as wakeup capable. This behavior can be
controlled through device wakeup source policy by the user space.

Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
Link: https://lore.kernel.org/r/1653634146-12215-1-git-send-email-quic_prashk@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/usb-conn-gpio.c