Resolve the issue of interrupt exceptions during the wake-up process of HUSB311

This commit is contained in:
george 2024-08-23 11:28:28 +08:00 committed by Nathan
parent b2a4916b9d
commit 9be512fd0e

View File

@ -331,7 +331,7 @@ static int husb311_pm_suspend(struct device *dev)
struct husb311_chip *chip = dev->driver_data; struct husb311_chip *chip = dev->driver_data;
struct i2c_client *client = to_i2c_client(dev); struct i2c_client *client = to_i2c_client(dev);
if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup)) //if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup))
//enable_irq_wake(client->irq); //enable_irq_wake(client->irq);
//else //else
disable_irq(client->irq); disable_irq(client->irq);
@ -351,9 +351,9 @@ static int husb311_pm_resume(struct device *dev)
int ret = 0; int ret = 0;
u8 filter; u8 filter;
if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup)) //if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup))
disable_irq_wake(client->irq); // disable_irq_wake(client->irq);
else //else
enable_irq(client->irq); enable_irq(client->irq);
/* /*