From 36f6e03329a997a802629a535e51b462183ceb2a Mon Sep 17 00:00:00 2001 From: george Date: Sun, 18 Aug 2024 21:43:08 +0800 Subject: [PATCH] Resolve the issue of automatic sleep wake-up for husb311 --- drivers/usb/typec/tcpm/tcpci_husb311.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/tcpm/tcpci_husb311.c b/drivers/usb/typec/tcpm/tcpci_husb311.c index 20d91839a..4e822defd 100644 --- a/drivers/usb/typec/tcpm/tcpci_husb311.c +++ b/drivers/usb/typec/tcpm/tcpci_husb311.c @@ -332,8 +332,8 @@ static int husb311_pm_suspend(struct device *dev) struct i2c_client *client = to_i2c_client(dev); if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup)) - enable_irq_wake(client->irq); - else + //enable_irq_wake(client->irq); + //else disable_irq(client->irq); if (!chip->suspended) {