Resolve the issue of automatic sleep wake-up for husb311

This commit is contained in:
george 2024-08-18 21:43:08 +08:00 committed by Nathan
parent e1254c1e42
commit 36f6e03329

View File

@ -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) {