diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-11-13 13:34:18 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-11-25 23:17:23 +0100 |
commit | 94037efe81d8e734e28f12b98f76a6e8005495d6 (patch) | |
tree | fd2c47183c18aef80ef002696d2b1eb2dd347f7a /drivers/hid/hid-hyperv.c | |
parent | e0da5c9a49b927d9e5f62b21a7abc283e99022e2 (diff) |
HID: i2c-hid: disable interrupt on suspend
When an I2C HID device is powered of during system sleep, as a result of
removing its power resources (by the ACPI core) the interrupt line might go
low as well. This results inadvertent interrupt and wakes the system from
sleep immediately.
To prevent this we disable the device interrupt in the drivers suspend
method and enable it on resume. The device can still wake the system up if
it is wake capable (this also means that not all of its power will be
removed to keep the interrupt line high).
Reported-by: Jerome Blin <jerome.blin@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-hyperv.c')
0 files changed, 0 insertions, 0 deletions