]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: tcpci: add wakeup support
authorXu Yang <xu.yang_2@nxp.com>
Wed, 10 Sep 2025 10:50:42 +0000 (18:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Sep 2025 12:03:07 +0000 (14:03 +0200)
commita5d2edb2c9fa48382aec1673c709c2919899527c
tree35e3731039811d4c48c097d438ccceb9898ae583
parent6f9871b3e8c31953978db552c730a7e017e51d19
usb: typec: tcpci: add wakeup support

Add wakeup support for tcpci. If the user enables the wakeup file, call
enable_irq_wake() during system suspend and disable_irq_wake() during
system resume. Since this driver supports shared interrupts, mask the
chip interrupt by default when wakeup is disabled to avoid affecting
other IRQ users.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20250910105042.695146-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c