Resolve the issue of interrupt exceptions during the wake-up process of HUSB311
This commit is contained in:
		
							parent
							
								
									b2a4916b9d
								
							
						
					
					
						commit
						9be512fd0e
					
				| @ -331,7 +331,7 @@ static int husb311_pm_suspend(struct device *dev) | ||||
| 	struct husb311_chip *chip = dev->driver_data; | ||||
| 	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);
 | ||||
| 	//else
 | ||||
| 		disable_irq(client->irq); | ||||
| @ -351,9 +351,9 @@ static int husb311_pm_resume(struct device *dev) | ||||
| 	int ret = 0; | ||||
| 	u8 filter; | ||||
| 
 | ||||
| 	if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup)) | ||||
| 		disable_irq_wake(client->irq); | ||||
| 	else | ||||
| 	//if (device_may_wakeup(dev) && (!chip->vbus_on || chip->wakeup))
 | ||||
| 	//	disable_irq_wake(client->irq);
 | ||||
| 	//else
 | ||||
| 		enable_irq(client->irq); | ||||
| 
 | ||||
| 	/*
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 george
						george