@@ -250,6 +250,9 @@ static int eeti_ts_suspend(struct i2c_client *client, pm_message_t mesg)
if (device_may_wakeup(&client->dev))
enable_irq_wake(priv->irq);
+ disable_irq(priv->irq);
+ cancel_work_sync(&priv->work);
+
return 0;
}
@@ -260,6 +263,10 @@ static int eeti_ts_resume(struct i2c_client *client)
if (device_may_wakeup(&client->dev))
disable_irq_wake(priv->irq);
+ /* If we have active users, read the events once to arm the IRQ */
+ if (priv->input->users)
+ eeti_ts_read(&priv->work);
+
return 0;
}
#else