]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: call the hid driver's suspend and resume callbacks
authorAndrew Duggan <aduggan@synaptics.com>
Fri, 11 Jul 2014 23:34:18 +0000 (16:34 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Jul 2014 09:11:31 +0000 (11:11 +0200)
commit72f66deb92be40f135e223721eaf1688219709ce
tree6948f723339e888757783ce421bc072ff4bae575
parente26c0077a488f3a50af2422ef8329e37b11c7ab0
HID: i2c-hid: call the hid driver's suspend and resume callbacks

Currently, the i2c-hid driver does not call the suspend, resume, and
reset_resume callbacks in the hid_driver struct when those events occur.
This means that HID drivers for i2c-hid devices will not be able to execute
commands which may be needed during suspend or resume. One example is when a
touchpad using the hid-multitouch driver gets reset by i2c-hid coming out of
resume. Since the reset_resume callback never gets called the device is never
put back into the correct input mode. This patch calls the suspend and resume
callbacks and tries to duplicate the functionality of the usb-hid driver.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Vincent Huang <vincent.huang@tw.synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c