Skip to contentSkip to conversation

mei: me: clear interrupts on the resume path

char-misc 3.10 Tomas Winkler 1 participant 1 message Jun 5, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

We need to clear pending interrupts on the resume path. This brings the device into defined state before starting the reset flow

This should solve suspend/resume issues:

mei_me : wait hw ready failed. status = 0x0 mei_me : version message write failed

---
 drivers/misc/mei/pci-me.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/mei/pci-me.c +1 -0
index a2f5520f..1b3844e 100644
@@ -306,6 +306,7 @@ static int mei_me_pci_resume(struct device *device)
 
 	mutex_lock(&dev->device_lock);
 	dev->dev_state = MEI_DEV_POWER_UP;
+	mei_clear_interrupts(dev);
 	mei_reset(dev, 1);
 	mutex_unlock(&dev->device_lock);
 
Signature · 1 line
1.8.1.2